Correct item hologram offset as well

This commit is contained in:
fullwall 2024-04-15 12:17:01 +08:00
parent 1e368e71a5
commit fe5a088f7a
1 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,8 @@ public class HologramTrait extends Trait {
@Override
protected void render0(NPC npc, Vector3d offset) {
hologram.getEntity().teleport(npc.getStoredLocation().clone().add(offset.x, offset.y, offset.z),
hologram.getEntity().teleport(
npc.getStoredLocation().clone().add(offset.x, offset.y + getEntityBbHeight(), offset.z),
TeleportCause.PLUGIN);
}
}