diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Fill.java b/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Fill.java index bf7a16a..94f1744 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Fill.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/ingame/Fill.java @@ -14,6 +14,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; +import net.minecraft.util.math.Vec3d; import java.util.HashMap; @@ -68,9 +69,9 @@ public class Fill extends Feature { iterationsLeft = iterations; // loop through intersection of box around player and the selection - BlockPos eyePos = new BlockPos(mc.player.getPositionEyes(1)); - BlockPos pBoxMin = eyePos.add(-5, -5, -5); - BlockPos pBoxMax = eyePos.add(5, 5, 5); + Vec3d eyePos = mc.player.getPositionEyes(1); + BlockPos pBoxMin = new BlockPos(eyePos.add(-4.5, -4.5, -4.5)); + BlockPos pBoxMax = new BlockPos(eyePos.add(4.5, 4.5, 4.5)); BlockPos selectMin = Select.selection.pos1; BlockPos selectMax = Select.selection.pos2; int minX = Math.max(pBoxMin.getX(), selectMin.getX()), maxX = Math.min(pBoxMax.getX(), selectMax.getX());