Acutally fixed it
This commit is contained in:
@@ -54,19 +54,16 @@ public abstract class MixinChunkProviderServer {
|
||||
if (chunk.isUnloading()) {
|
||||
if (chunk.scheduledForUnload != null) {
|
||||
if (now - chunk.scheduledForUnload > unloadAfter) {
|
||||
if (unloadChunk(chunk, true)) {
|
||||
chunk.scheduledForUnload = null;
|
||||
it.remove();
|
||||
}
|
||||
chunk.setShouldUnload(false);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!unloadChunk(chunk, true)) { // Event cancelled
|
||||
// If a plugin cancelled it, we shouldn't trying unload it for a while
|
||||
chunk.setShouldUnload(false);
|
||||
} else {
|
||||
it.remove();
|
||||
}
|
||||
|
||||
if (--remainingChunks <= targetSize || activityAccountant.activityTimeIsExhausted()) break; // more slack since the target size not work as intended
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user