Skip to content

Commit

Permalink
save setting after death
Browse files Browse the repository at this point in the history
  • Loading branch information
slprime authored and Dream-Master committed Aug 26, 2024
1 parent 088e3dc commit 77cb90b
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 @@ -794,6 +794,7 @@ public static OptionList getOptionList() {
}

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

setInternalEnabled(true);
Expand All @@ -808,6 +809,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 @@ -907,7 +909,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 77cb90b

Please sign in to comment.