This commit is contained in:
Jesse Boyd 2017-08-03 23:13:04 +10:00
parent a913983d99
commit b924809c91
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -260,7 +260,7 @@ public class BukkitLocalQueue_1_9 extends BukkitLocalQueue<char[]> {
Method ym = null;
Method zm = null;
// Trim tiles
boolean removed = false;
Collection tickList = ((Collection) this.tileEntityListTick.of(w).get());
Set<Map.Entry<?, ?>> entrySet = (Set<Map.Entry<?, ?>>) (Set<?>) tiles.entrySet();
Iterator<Map.Entry<?, ?>> iterator = entrySet.iterator();
while (iterator.hasNext()) {
@ -282,13 +282,10 @@ public class BukkitLocalQueue_1_9 extends BukkitLocalQueue<char[]> {
continue;
}
if (array[k] != 0) {
removed = true;
tickList.remove(tile.getValue());
iterator.remove();
}
}
if (removed) {
((Collection) this.tileEntityListTick.of(w).get()).clear();
}
// Trim entities
for (int i = 0; i < 16; i++) {