Fix ParallelQueueExtent#setBlocks(Region, <B extends BlockStateHolder>)#

- Fixes removeabove/removebelow
Dieser Commit ist enthalten in:
dordsor21 2021-08-07 17:38:09 +01:00
Ursprung 346223977d
Commit 9af77c06b8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -147,9 +147,9 @@ public class ParallelQueueExtent extends PassthroughExtent implements IQueueWrap
@Override @Override
public <B extends BlockStateHolder<B>> int setBlocks(Region region, B block) throws MaxChangedBlocksException { public <B extends BlockStateHolder<B>> int setBlocks(Region region, B block) throws MaxChangedBlocksException {
return this.changes = apply(region, new BlockMaskBuilder().add(block).build(this).toFilter(new CountFilter())) Mask mask = new BlockMaskBuilder().add(block).build(this).inverse();
.getParent() return this.changes = apply(region, mask.toFilter(block), mask.replacesAir())
.getTotal(); .getBlocksApplied();
} }
@Override @Override