This commit is contained in:
Jesse Boyd
2019-06-29 03:29:53 +10:00
parent 7a34a05b64
commit f1e98da01f
4 changed files with 15 additions and 20 deletions

View File

@ -76,15 +76,10 @@ public class Naturalizer implements LayerFunction {
default:
return BlockTypes.STONE.getDefaultState();
}
}
private boolean naturalize(BlockVector3 position, int depth) throws WorldEditException {
BlockState block = editSession.getBlock(position);
BlockState targetBlock = getTargetBlock(depth);
if (block.equalsFuzzy(targetBlock)) {
return false;
}
return editSession.setBlock(position, targetBlock);
private boolean naturalize(BlockVector3 position, int depth) throws WorldEditException {
return editSession.setBlock(position, getTargetBlock(depth));
}
@Override
public boolean apply(BlockVector3 position, int depth) throws WorldEditException {