diff --git a/src/main/java/codechicken/nei/NEICPH.java b/src/main/java/codechicken/nei/NEICPH.java index 907b7696a..a9b3d57f1 100644 --- a/src/main/java/codechicken/nei/NEICPH.java +++ b/src/main/java/codechicken/nei/NEICPH.java @@ -102,7 +102,7 @@ private void handleSMPCheck(int serverprotocol, String worldName, World world) { try { ClientHandler.instance().loadWorld(world, true); NEIClientConfig.setHasSMPCounterPart(true); - NEIClientConfig.loadWorld(getSaveName(worldName)); + NEIClientConfig.loadWorld(getSaveName()); sendRequestLoginInfo(); } catch (Exception e) { NEIClientConfig.logger.error("Error handling SMP Check", e); @@ -110,10 +110,10 @@ private void handleSMPCheck(int serverprotocol, String worldName, World world) { } } - private static String getSaveName(String worldName) { + private static String getSaveName() { if (Minecraft.getMinecraft().isSingleplayer()) return "local/" + ClientUtils.getWorldSaveName(); - return "remote/" + ClientUtils.getServerIP().replace(':', '~') + "/" + worldName; + return "remote/" + ClientUtils.getServerIP().replace(':', '~'); } public static void sendGiveItem(ItemStack spawnstack, boolean infinite, boolean doSpawn) {