@@ -723,21 +723,25 @@ public static OptionList getOptionList() {
723
723
724
724
public static void loadWorld (String worldPath ) {
725
725
unloadWorld ();
726
- NEIClientConfig .worldPath = worldPath ;
727
-
728
726
setInternalEnabled (true );
729
- logger .debug ("Loading " + (Minecraft .getMinecraft ().isSingleplayer () ? "Local" : "Remote" ) + " World" );
730
727
731
- final File specificDir = new File ( CommonUtils . getMinecraftDir (), "saves/NEI/" + worldPath );
732
- final boolean newWorld = ! specificDir . exists () ;
728
+ if (! worldPath . equals ( NEIClientConfig . worldPath )) {
729
+ NEIClientConfig . worldPath = worldPath ;
733
730
734
- if (newWorld ) {
735
- specificDir .mkdirs ();
736
- }
731
+ logger .debug ("Loading " + (Minecraft .getMinecraft ().isSingleplayer () ? "Local" : "Remote" ) + " World" );
732
+
733
+ final File specificDir = new File (CommonUtils .getMinecraftDir (), "saves/NEI/" + worldPath );
734
+ final boolean newWorld = !specificDir .exists ();
735
+
736
+ if (newWorld ) {
737
+ specificDir .mkdirs ();
738
+ }
737
739
738
- world = new ConfigSet (new File (specificDir , "NEI.dat" ), new ConfigFile (new File (specificDir , "NEI.cfg" )));
739
- bootNEI (ClientUtils .getWorld ());
740
- onWorldLoad (newWorld );
740
+ world = new ConfigSet (new File (specificDir , "NEI.dat" ), new ConfigFile (new File (specificDir , "NEI.cfg" )));
741
+ bootNEI (ClientUtils .getWorld ());
742
+ onWorldLoad (newWorld );
743
+ ItemPanels .bookmarkPanel .load ();
744
+ }
741
745
}
742
746
743
747
public static String getWorldPath () {
@@ -838,9 +842,8 @@ public void run() {
838
842
});
839
843
840
844
RecipeCatalysts .loadCatalystInfo ();
841
- ItemPanels .bookmarkPanel .load ();
842
- SubsetWidget .loadHidden ();
843
845
CollapsibleItems .load ();
846
+ SubsetWidget .loadHidden ();
844
847
ItemSorter .loadConfig ();
845
848
846
849
// Set pluginNEIConfigLoaded here before posting the NEIConfigsLoadedEvent. This used to be the
@@ -854,10 +857,6 @@ public void run() {
854
857
ItemList .loadItems .restart ();
855
858
}
856
859
}.start ();
857
- } else {
858
- ItemPanels .bookmarkPanel .load ();
859
- SubsetWidget .loadHidden ();
860
- ItemList .loadItems .restart ();
861
860
}
862
861
}
863
862
0 commit comments