fix chunks not being submitted

Dieser Commit ist enthalten in:
Jesse Boyd 2019-11-18 14:49:52 +00:00
Ursprung 4c32949210
Commit 319b3c5f7f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
3 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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