Allow fastmode to be used in a lot more places

- Option to stop fastmode from bothering to fix existing ticking blocks
This commit is contained in:
dordsor21
2020-05-11 15:36:52 +01:00
parent 8c38ac0fbc
commit 36faf107e6
15 changed files with 96 additions and 36 deletions

View File

@ -49,6 +49,8 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
private boolean enabledQueue = true;
private boolean fastmode = false;
/**
* Safety check to ensure that the thread being used matches the one being initialized on. - Can
* be removed later
@ -80,6 +82,16 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
return cacheSet.get(chunkX, chunkZ);
}
@Override
public void setFastMode(boolean fastmode) {
this.fastmode = fastmode;
}
@Override
public boolean isFastMode() {
return fastmode;
}
/**
* Resets the queue.
*/