fix chunks not being submitted

This commit is contained in:
Jesse Boyd 2019-11-18 14:49:52 +00:00
parent 4c32949210
commit 319b3c5f7f
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
3 changed files with 3 additions and 4 deletions

View File

@ -138,7 +138,9 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
}
final long index = MathMan.pairInt(chunk.getX(), chunk.getZ());
chunks.remove(index, chunk);
return submitUnchecked(chunk);
V future = submitUnchecked(chunk);
submissions.add(future);
return future;
}
/**

View File

@ -70,7 +70,6 @@ public class InspectBrush extends BrushTool implements DoubleActionTraceTool {
final int y = target.getBlockY();
final int z = target.getBlockZ();
World world = player.getWorld();
EditSessionBuilder editSession = new EditSessionBuilder(world).player(player);
RollbackDatabase db = DBHandler.IMP.getDatabase(world);
final AtomicInteger count = new AtomicInteger();
db.getPotentialEdits(null, 0, target, target, new RunnableVal<DiskStorageHistory>() {

View File

@ -145,7 +145,6 @@ public abstract class FaweChangeSet implements ChangeSet, IBatchProcessor, Close
@Override
public synchronized IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set) {
System.out.println("Add chunk " + chunk.getX() + "," + chunk.getZ() + " | " + set.getBitMask());
int bx = chunk.getX() << 4;
int bz = chunk.getZ() << 4;
@ -224,7 +223,6 @@ public abstract class FaweChangeSet implements ChangeSet, IBatchProcessor, Close
}
}
}
return set;
}