Skip to content

Commit

Permalink
save setting after death
Browse files Browse the repository at this point in the history
  • Loading branch information
slprime committed Aug 23, 2024
1 parent 3e1baa4 commit 2f7927f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/codechicken/nei/NEIClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ public static OptionList getOptionList() {
}

public static void loadWorld(String worldPath) {
unloadWorld();
NEIClientConfig.worldPath = worldPath;

setInternalEnabled(true);
Expand All @@ -554,6 +555,7 @@ public static void loadWorld(String worldPath) {

world = new ConfigSet(new File(specificDir, "NEI.dat"), new ConfigFile(new File(specificDir, "NEI.cfg")));
bootNEI(ClientUtils.getWorld());
ItemPanels.bookmarkPanel.load();
onWorldLoad(newWorld);
}

Expand Down Expand Up @@ -653,7 +655,6 @@ public static void bootNEI(World world) {
LayoutManager.load();
NEIController.load();
BookmarkContainerInfo.load();
ItemPanels.bookmarkPanel.load();
mainNEIConfigLoaded = true;

new Thread("NEI Plugin Loader") {
Expand Down

0 comments on commit 2f7927f

Please sign in to comment.