diff --git a/VoxelSniperCore/src/main/java/com/github/kevindagame/brush/CloneStampBrush.java b/VoxelSniperCore/src/main/java/com/github/kevindagame/brush/CloneStampBrush.java index 4bf0e15e..f6b2b3d2 100644 --- a/VoxelSniperCore/src/main/java/com/github/kevindagame/brush/CloneStampBrush.java +++ b/VoxelSniperCore/src/main/java/com/github/kevindagame/brush/CloneStampBrush.java @@ -7,11 +7,9 @@ import com.github.kevindagame.util.Shapes; import com.github.kevindagame.util.Utils; import com.github.kevindagame.util.VoxelMessage; -import com.github.kevindagame.voxelsniper.location.BaseLocation; import com.github.kevindagame.voxelsniper.location.VoxelLocation; import org.jetbrains.annotations.NotNull; -import java.util.ArrayList; import java.util.List; /** @@ -22,9 +20,6 @@ */ public class CloneStampBrush extends StampBrush { - private BaseLocation startingPoint; - - /** * The clone method is used to grab a snapshot of the selected area dictated blockPositionY targetBlock.x y z v.brushSize v.voxelHeight and v.cCen. *
@@ -34,10 +29,9 @@ public class CloneStampBrush extends StampBrush { * @param v the caller */ private void clone(final SnipeData v) { - VoxelLocation point = getTargetBlock().getLocation().makeMutable(); - point.add(0, v.getcCen(), 0); - this.startingPoint = point.makeImmutable(); - var positions = Shapes.cylinder(startingPoint, RotationAxis.Y, v.getBrushSize(), v.getVoxelHeight(), 0, false); + VoxelLocation startingPoint = getTargetBlock().getLocation().makeMutable(); + startingPoint.add(0, v.getcCen(), 0); + var positions = Shapes.cylinder(startingPoint, RotationAxis.Y, v.getBrushSize(), v.getVoxelHeight(), (v.getVoxelHeight() / 2.0) - 1, false); this.clone.clear(); this.toStamp.clear(); this.sorted = false; diff --git a/VoxelSniperCore/src/main/java/com/github/kevindagame/util/Shapes.java b/VoxelSniperCore/src/main/java/com/github/kevindagame/util/Shapes.java index f64175a6..23089662 100644 --- a/VoxelSniperCore/src/main/java/com/github/kevindagame/util/Shapes.java +++ b/VoxelSniperCore/src/main/java/com/github/kevindagame/util/Shapes.java @@ -1,6 +1,5 @@ package com.github.kevindagame.util; -import com.github.kevindagame.snipe.Undo; import com.github.kevindagame.voxelsniper.block.BlockFace; import com.github.kevindagame.voxelsniper.block.IBlock; import com.github.kevindagame.voxelsniper.location.BaseLocation; @@ -81,7 +80,7 @@ public static List