fixed bugs, memory leaks, etc

This commit is contained in:
bbldrizzy committed 2026-10-23 08:36:42 +01:00
1 parent aa4f6b6ddc
commit c3f8f23c1d
124 files changed
+1060 -420

No files matched your search

@@ -34,7 +34,12 @@ public class ClientPlayNetworkHandlerMixin {
target = {@CTarget("TAIL")}
)
private void postChunkDataEventAtTail(ChunkDataS2CPacket packet, InjectionCallback info) {
if (this.world == null) {
return;
}
WorldChunk chunk = this.world.getChunk(packet.getChunkX(), packet.getChunkZ());
HookBridge.postChunkDataEvent(HookBridge.createChunkDataEvent(chunk));
if (chunk != null) {
HookBridge.postChunkDataEvent(HookBridge.createChunkDataEvent(chunk));
}
}
}