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 <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-10-04 07:27:11 -04:00
parent 4f12261080
commit 35bd69808c
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}