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:
parent
4f12261080
commit
35bd69808c
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ public class NetworkHooks
|
||||||
public synchronized static void sendDimensionDataPacket(NetworkManager manager, ServerPlayerEntity player) {
|
public synchronized static void sendDimensionDataPacket(NetworkManager manager, ServerPlayerEntity player) {
|
||||||
// don't send vanilla dims
|
// don't send vanilla dims
|
||||||
if (player.dimension.isVanilla()) return;
|
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);
|
FMLNetworkConstants.playChannel.sendTo(new FMLPlayMessages.DimensionInfoMessage(player.dimension), manager, NetworkDirection.PLAY_TO_CLIENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue