More SDF tests

This commit is contained in:
paulevsGitch 2020-09-29 01:01:42 +03:00
parent cf8955ea4b
commit 2e632bf245
13 changed files with 111 additions and 22 deletions

View file

@ -33,7 +33,7 @@ public interface ISDF {
run &= Math.abs(pos.getZ()) < dz;
if (!blocks.contains(pos) && canReplace.apply(world.getBlockState(wpos))) {
if (this.getDistance(pos.getX(), pos.getY(), pos.getZ()) <= 0) {
if (this.getDistance(pos.getX(), pos.getY(), pos.getZ()) < 0) {
BlocksHelper.setWithoutUpdate(world, wpos, Blocks.STONE);
add.add(pos);
}