Armorstand renderer should incorporate entity height
This commit is contained in:
parent
cd7f3366ab
commit
3d44a09756
|
@ -336,7 +336,8 @@ public class HologramTrait extends Trait {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void render0(NPC npc, Vector3d offset) {
|
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);
|
TeleportCause.PLUGIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue