geforkt von Mirrors/FastAsyncWorldEdit
Correctly recycle CharSetBlocks
Dieser Commit ist enthalten in:
Ursprung
9762e4e220
Commit
38d1a64bf5
@ -51,6 +51,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void recycle() {
|
public synchronized void recycle() {
|
||||||
|
reset();
|
||||||
POOL.offer(this);
|
POOL.offer(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1046,7 +1046,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
|
|||||||
try {
|
try {
|
||||||
return this.call(chunkSet, () -> {
|
return this.call(chunkSet, () -> {
|
||||||
this.delegate = NULL;
|
this.delegate = NULL;
|
||||||
chunkSet.recycle();
|
|
||||||
chunkSet = null;
|
chunkSet = null;
|
||||||
calledLock.unlock(stamp);
|
calledLock.unlock(stamp);
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren