mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fixes #1608
This commit is contained in:
parent
a913983d99
commit
b924809c91
@ -260,7 +260,7 @@ public class BukkitLocalQueue_1_9 extends BukkitLocalQueue<char[]> {
|
|||||||
Method ym = null;
|
Method ym = null;
|
||||||
Method zm = null;
|
Method zm = null;
|
||||||
// Trim tiles
|
// Trim tiles
|
||||||
boolean removed = false;
|
Collection tickList = ((Collection) this.tileEntityListTick.of(w).get());
|
||||||
Set<Map.Entry<?, ?>> entrySet = (Set<Map.Entry<?, ?>>) (Set<?>) tiles.entrySet();
|
Set<Map.Entry<?, ?>> entrySet = (Set<Map.Entry<?, ?>>) (Set<?>) tiles.entrySet();
|
||||||
Iterator<Map.Entry<?, ?>> iterator = entrySet.iterator();
|
Iterator<Map.Entry<?, ?>> iterator = entrySet.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
@ -282,13 +282,10 @@ public class BukkitLocalQueue_1_9 extends BukkitLocalQueue<char[]> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (array[k] != 0) {
|
if (array[k] != 0) {
|
||||||
removed = true;
|
tickList.remove(tile.getValue());
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (removed) {
|
|
||||||
((Collection) this.tileEntityListTick.of(w).get()).clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Trim entities
|
// Trim entities
|
||||||
for (int i = 0; i < 16; i++) {
|
for (int i = 0; i < 16; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user