mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-30 07:27:46 +02:00
Fix chunks not being GCed
This commit is contained in:
parent
94a13a9523
commit
1eb5c8519d
@ -171,6 +171,9 @@ public final class ThreadDispatcher<P> {
|
|||||||
thread.entries().remove(partitionEntry);
|
thread.entries().remove(partitionEntry);
|
||||||
}
|
}
|
||||||
this.partitionUpdateQueue.remove(partition);
|
this.partitionUpdateQueue.remove(partition);
|
||||||
|
if (partition instanceof Tickable tickable) {
|
||||||
|
processRemovedEntity(tickable);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processRemovedEntity(Tickable tickable) {
|
private void processRemovedEntity(Tickable tickable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user