From 248add0bc4424db672da9cfdeae0122370300db1 Mon Sep 17 00:00:00 2001 From: Oth3r <68134921+Oth3r@users.noreply.github.com> Date: Sun, 9 Mar 2025 14:55:48 -0500 Subject: [PATCH] fixes #17 --- src/main/java/one/oth3r/sit/utl/Utl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/one/oth3r/sit/utl/Utl.java b/src/main/java/one/oth3r/sit/utl/Utl.java index 4fd84bd..88e86b7 100644 --- a/src/main/java/one/oth3r/sit/utl/Utl.java +++ b/src/main/java/one/oth3r/sit/utl/Utl.java @@ -227,8 +227,7 @@ public class Utl { public static BlockPos getBlockPos(DisplayEntity.TextDisplayEntity entity) { // the entity Y level, adjusted // the adjustment - is the opposite of the offset applied in Entity.create() - double entityY = entity.getY() + (Y_ADJUSTMENT*-1); - + double entityY = entity.getBlockY() + (Y_ADJUSTMENT*-1); // get the block pos BlockPos pos = new BlockPos(entity.getBlockX(),(int)entityY,entity.getBlockZ()); // if above the block, subtract 1