From 776eec05b2d6bf885c4d3ce0f62edff7aa3bea44 Mon Sep 17 00:00:00 2001 From: Nameless-123 <53367549+Nameless-123@users.noreply.github.com> Date: Sun, 19 Apr 2020 09:10:32 +0200 Subject: [PATCH] I think that fixed it But now its conctantly crashing --- src/main/java/carpet/commands/DrawCommand.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/carpet/commands/DrawCommand.java b/src/main/java/carpet/commands/DrawCommand.java index 6fba527e..5ba454d7 100644 --- a/src/main/java/carpet/commands/DrawCommand.java +++ b/src/main/java/carpet/commands/DrawCommand.java @@ -274,7 +274,7 @@ public class DrawCommand { int affected = 0; int offset = 0; if(pointup){ - offset=height; + offset=height+1; } BlockPos.Mutable mbpos = new BlockPos.Mutable(pos); @@ -286,16 +286,15 @@ public class DrawCommand { for (int x = -radius; x <= radius; ++x) { - for (int y = -offset; y <= height+1-offset; ++y) { + for (int y = 2-offset; y <= height-offset+1; ++y) { for (int z = -radius; z <= radius; ++z) { - if (x*x+z*z>(radius/height*y)*(radius/height*y)) { + if (!(x*x+z*z<=(radius/height*y)*(radius/height*y))) { continue; } mbpos.set(pos.getX() + x, pos.getY() + y + offset, pos.getZ() + z); - if (replacement == null || replacement.test(new CachedBlockPosition(world, mbpos, true))) { BlockEntity tileentity = world.getBlockEntity(mbpos);