diff --git a/core/src/io/anuke/mindustry/core/Control.java b/core/src/io/anuke/mindustry/core/Control.java index 9d8aa08e6a..e1c8d6b479 100644 --- a/core/src/io/anuke/mindustry/core/Control.java +++ b/core/src/io/anuke/mindustry/core/Control.java @@ -366,7 +366,7 @@ public class Control extends Module{ } //check unlocks every 2 seconds - if(world.getSector() != null && Timers.get("timerCheckUnlock", 120)){ + if(!state.mode.infiniteResources && Timers.get("timerCheckUnlock", 120)){ checkUnlockableBlocks(); //save if the db changed diff --git a/core/src/io/anuke/mindustry/game/ContentDatabase.java b/core/src/io/anuke/mindustry/game/ContentDatabase.java index 4a9934a237..e1740a5a7f 100644 --- a/core/src/io/anuke/mindustry/game/ContentDatabase.java +++ b/core/src/io/anuke/mindustry/game/ContentDatabase.java @@ -77,7 +77,7 @@ public class ContentDatabase{ public void load(){ sets.clear(); - ObjectMap>> result = Settings.getBinary("content-database", ObjectMap.class, () -> new ObjectMap<>()); + ObjectMap>> result = Settings.getBinary("content-sets", ObjectMap.class, () -> new ObjectMap<>()); for(Entry>> outer : result.entries()){ ContentUnlockSet cset = new ContentUnlockSet(); @@ -103,7 +103,7 @@ public class ContentDatabase{ output.put(centry.key, write); } - Settings.putBinary("content-database", output); + Settings.putBinary("content-sets", output); Settings.save(); }