From d63b53edb2d959cad76eed5b64ecfe86667e4635 Mon Sep 17 00:00:00 2001 From: Chryfi <71967555+Chryfi@users.noreply.github.com> Date: Fri, 7 Jun 2024 22:46:10 +0200 Subject: [PATCH] fix devmode assign default settings when no settings there --- .../java/mchorse/metamorph/api/morphs/AbstractMorph.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/mchorse/metamorph/api/morphs/AbstractMorph.java b/src/main/java/mchorse/metamorph/api/morphs/AbstractMorph.java index 9ded8daf..cc11a103 100644 --- a/src/main/java/mchorse/metamorph/api/morphs/AbstractMorph.java +++ b/src/main/java/mchorse/metamorph/api/morphs/AbstractMorph.java @@ -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;