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