Skip to content

Commit

Permalink
fix devmode assign default settings when no settings there
Browse files Browse the repository at this point in the history
  • Loading branch information
Chryfi committed Jun 7, 2024
1 parent 406b737 commit d63b53e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/mchorse/metamorph/api/morphs/AbstractMorph.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,12 @@ public void initializeSettings()
{
if (this.settings == null)
{
if (FMLForgePlugin.RUNTIME_DEOBF)
if (!FMLForgePlugin.RUNTIME_DEOBF)
{
this.settings = MorphSettings.DEFAULT_MORPHED.copy();
}
else
{
// Developer mode
Metamorph.LOGGER.error("needSettingsUpdate was not set to true when changing morph settings, or the settings was set to null directly when it shouldn't be");
}

this.settings = MorphSettings.DEFAULT_MORPHED.copy();
}

return;
Expand Down

0 comments on commit d63b53e

Please sign in to comment.