terrarium-earth / Cadmus

A land claiming mod that allows users to claim land to protect your home from thieves, bandits and monsters, and admins to claim land with region flags and advanced protection!
MIT License
21 stars 8 forks source link

[Bug]: Game crashes on second boot #38

Closed Mrbysco closed 5 months ago

Mrbysco commented 5 months ago

Bug Description

The game fails to load the second time I boot it up complaining about a duplicate key

How to Reproduce?

  1. Install Cadmus on NeoForge 1.20.4
  2. Start the game
  3. Close the game
  4. Start the game again
  5. Crash

Expected Behavior

I expect the game to launch the 2nd time without crashing

Version

1.2.0

Mod Loader Version

1.20.4 - 20.4.152-beta

Mod Loader

NeoForge

Logs or additional context

The error doesn't show up in the log as it happens too early https://pastebin.com/6beH3JWt

Code of Conduct

Mrbysco commented 5 months ago

To note, it's actually adding the keybind to the options.txt twice which is the issue

AlexNijjar commented 5 months ago

Published as v1.2.1. Do note that you may need to delete the duplicate key.cadmus.open_claim_map in your options.txt if you previously ran the game on 1.2.0.