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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user