From 432c2a8394426c3f03c3cd8c4ad7beb0717ebc1b Mon Sep 17 00:00:00 2001 From: Nameless-123 <53367549+Nameless-123@users.noreply.github.com> Date: Sun, 19 Apr 2020 09:23:47 +0200 Subject: [PATCH] Now it works But if it is pointing up, it has a flat top --- src/main/java/carpet/commands/DrawCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/carpet/commands/DrawCommand.java b/src/main/java/carpet/commands/DrawCommand.java index 5ba454d7..d49f8cb7 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+1; + offset=height; } BlockPos.Mutable mbpos = new BlockPos.Mutable(pos); @@ -286,7 +286,7 @@ public class DrawCommand { for (int x = -radius; x <= radius; ++x) { - for (int y = 2-offset; y <= height-offset+1; ++y) { + for (int y = -offset; y <= height-offset-1; ++y) { for (int z = -radius; z <= radius; ++z) {