diff --git a/src/main/java/net/earthcomputer/multiconnect/protocols/v1_8/mixin/MixinClientPlayNetworkHandler.java b/src/main/java/net/earthcomputer/multiconnect/protocols/v1_8/mixin/MixinClientPlayNetworkHandler.java index 39a46548..040d55b8 100644 --- a/src/main/java/net/earthcomputer/multiconnect/protocols/v1_8/mixin/MixinClientPlayNetworkHandler.java +++ b/src/main/java/net/earthcomputer/multiconnect/protocols/v1_8/mixin/MixinClientPlayNetworkHandler.java @@ -77,9 +77,12 @@ private void onOnChunkData(ChunkDataS2CPacket packet, CallbackInfo ci) { } } - @Inject(method = "onChunkData", at = @At("RETURN"), cancellable = true) + @Inject(method = "onChunkData", at = @At("RETURN")) private void postChunkData(ChunkDataS2CPacket packet, CallbackInfo ci) { // 1.8 doesn't send neighboring empty chunks, so we must assume they are empty unless otherwise specified + if (ConnectionInfo.protocolVersion > Protocols.V1_8) { + return; + } // don't load more empty chunks next to empty chunks, that would cause an infinite loop WorldChunk chunk = world.getChunk(packet.getX(), packet.getZ());