From 0e16a2f793b8e52d629a12cdc633af7518c81a2f Mon Sep 17 00:00:00 2001 From: Loyisa <894857715@qq.com> Date: Sun, 21 Nov 2021 15:29:27 +0800 Subject: [PATCH] Fix [Paper-0164] --- .../src/main/java/net/minecraft/server/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NachoSpigot-Server/src/main/java/net/minecraft/server/World.java b/NachoSpigot-Server/src/main/java/net/minecraft/server/World.java index cd2aae789..5146ba5e1 100644 --- a/NachoSpigot-Server/src/main/java/net/minecraft/server/World.java +++ b/NachoSpigot-Server/src/main/java/net/minecraft/server/World.java @@ -1716,7 +1716,7 @@ public void tickEntities() { // Paper start - Use alternate implementation with faster contains java.util.Set toRemove = java.util.Collections.newSetFromMap(new java.util.IdentityHashMap<>()); toRemove.addAll(this.getTileEntityListUnload()); - this.getTileEntityListUnload().removeAll(toRemove); + this.tileEntityList.removeAll(toRemove); // Paper end // this.tileEntityList.removeAll(this.c);//c == tileEntityListUnload //this.h.removeAll(this.c); // PaperSpigot - Remove unused list