This commit is contained in:
Jesse Boyd 2016-09-13 17:37:28 +10:00
parent 36fdbe55fe
commit 6dfea0364a
3 changed files with 9 additions and 2 deletions

View File

@ -206,6 +206,7 @@ public abstract class MappedFaweQueue<WORLD, CHUNK, SECTION> extends FaweQueue {
public void end(FaweChunk chunk) { public void end(FaweChunk chunk) {
chunk.end(); chunk.end();
sendChunk(chunk);
} }
@Override @Override

View File

@ -25,7 +25,7 @@ public class FaweLocalBlockQueue extends LocalBlockQueue {
@Override @Override
public boolean next() { public boolean next() {
return IMP.next(); return IMP.size() > 0;
} }
@Override @Override
@ -97,6 +97,12 @@ public class FaweLocalBlockQueue extends LocalBlockQueue {
IMP.flush(); IMP.flush();
} }
@Override
public void enqueue() {
super.enqueue();
IMP.enqueue();
}
@Override @Override
public void refreshChunk(int x, int z) { public void refreshChunk(int x, int z) {
IMP.sendChunk(IMP.getFaweChunk(x, z)); IMP.sendChunk(IMP.getFaweChunk(x, z));

View File

@ -31,7 +31,7 @@ public class PlotSquaredFeature extends FaweMaskManager {
try { try {
// If it's going to fail, throw an error now rather than later // If it's going to fail, throw an error now rather than later
QueueProvider provider = QueueProvider.of(FaweLocalBlockQueue.class, null); QueueProvider provider = QueueProvider.of(FaweLocalBlockQueue.class, null);
GlobalBlockQueue.IMP = new GlobalBlockQueue(provider, 1); GlobalBlockQueue.IMP.setProvider(provider);
HybridPlotManager.REGENERATIVE_CLEAR = false; HybridPlotManager.REGENERATIVE_CLEAR = false;
Fawe.debug(" - QueueProvider: " + FaweLocalBlockQueue.class); Fawe.debug(" - QueueProvider: " + FaweLocalBlockQueue.class);
Fawe.debug(" - HybridPlotManager.REGENERATIVE_CLEAR: " + HybridPlotManager.REGENERATIVE_CLEAR); Fawe.debug(" - HybridPlotManager.REGENERATIVE_CLEAR: " + HybridPlotManager.REGENERATIVE_CLEAR);