From 35bd69808c95ac314ab1bdfe833b3e913a9b29b2 Mon Sep 17 00:00:00 2001 From: cpw Date: Fri, 4 Oct 2019 07:27:11 -0400 Subject: [PATCH] Fix the stupid derp that broke singleplayer dims. Don't send the dim packet to the local client - it is not needed because obviously not. Seems to have fixed the problem. Probably infinity new bugs by this. Signed-off-by: cpw --- src/main/java/net/minecraftforge/fml/network/NetworkHooks.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraftforge/fml/network/NetworkHooks.java b/src/main/java/net/minecraftforge/fml/network/NetworkHooks.java index 7c55cf345..a171eb016 100644 --- a/src/main/java/net/minecraftforge/fml/network/NetworkHooks.java +++ b/src/main/java/net/minecraftforge/fml/network/NetworkHooks.java @@ -97,6 +97,8 @@ public class NetworkHooks public synchronized static void sendDimensionDataPacket(NetworkManager manager, ServerPlayerEntity player) { // don't send vanilla dims if (player.dimension.isVanilla()) return; + // don't sent to local - we already have a valid dim registry locally + if (manager.isLocalChannel()) return; FMLNetworkConstants.playChannel.sendTo(new FMLPlayMessages.DimensionInfoMessage(player.dimension), manager, NetworkDirection.PLAY_TO_CLIENT); }