Fix __reserved__ being solid

This commit is contained in:
Jesse Boyd
2018-08-17 19:21:45 +10:00
parent 177bfaa930
commit 43d5459595
4 changed files with 24 additions and 3 deletions

View File

@ -121,7 +121,7 @@ public class ImageBrush implements Brush {
if (color != 0) {
BlockType block = texture.getNearestBlock(color);
if (block != null) {
editSession.setBlock(vector.getBlockX(), vector.getBlockY(), vector.getBlockZ(), block.getDefaultState());
editSession.setBlock(vector, block.getDefaultState());
}
}
return true;

View File

@ -1012,6 +1012,7 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
@Override
public boolean setBlock(Vector position, BlockStateHolder block) throws MaxChangedBlocksException {
this.changes++;
try {
return this.extent.setBlock(position, block);
} catch (MaxChangedBlocksException e) {