Skip to content

Commit

Permalink
Fix world specific settings on MP being also specific to dimension (#414
Browse files Browse the repository at this point in the history
)
  • Loading branch information
miozune authored Aug 18, 2023
1 parent aa44a97 commit bdb206b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/codechicken/nei/NEICPH.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ 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);
}
}
}

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) {
Expand Down

0 comments on commit bdb206b

Please sign in to comment.