diff --git a/src/main/java/com/solarrabbit/largeraids/versioned/nms/BlockPositionWrapper.java b/src/main/java/com/solarrabbit/largeraids/versioned/nms/BlockPositionWrapper.java index f625797..d8d0269 100644 --- a/src/main/java/com/solarrabbit/largeraids/versioned/nms/BlockPositionWrapper.java +++ b/src/main/java/com/solarrabbit/largeraids/versioned/nms/BlockPositionWrapper.java @@ -7,12 +7,13 @@ import com.solarrabbit.largeraids.nms.AbstractBlockPositionWrapper; import net.minecraft.core.BlockPos; +import net.minecraft.util.Mth; public class BlockPositionWrapper implements AbstractBlockPositionWrapper { final BlockPos blockPos; public BlockPositionWrapper(double x, double y, double z) { - this.blockPos = new BlockPos(x, y, z); + this.blockPos = new BlockPos(Mth.floor(x), Mth.floor(y), Mth.floor(z)); } BlockPositionWrapper(@Nonnull BlockPos blockPos) {