9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 01:49:30 +00:00

fix(network): 修复内存泄漏

This commit is contained in:
jhqwqmc
2025-04-08 12:53:26 +08:00
parent caeeab641b
commit 5dbee9aa27

View File

@@ -1100,6 +1100,7 @@ public class PacketConsumers {
try {
IntList intList = FastNMS.INSTANCE.field$ClientboundRemoveEntitiesPacket$entityIds(packet);
for (int i = 0, size = intList.size(); i < size; i++) {
user.entityView().remove(intList.getInt(i));
List<Integer> entities = user.furnitureView().remove(intList.getInt(i));
if (entities == null) continue;
for (int entityId : entities) {