Armorstand renderer should incorporate entity height

This commit is contained in:
fullwall 2024-04-15 01:48:17 +08:00
parent cd7f3366ab
commit 3d44a09756
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,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);
}
}