Skip to content

Commit

Permalink
Armorstand renderer should incorporate entity height
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 14, 2024
1 parent cd7f336 commit 3d44a09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/src/main/java/net/citizensnpcs/trait/HologramTrait.java
Expand Up @@ -336,7 +336,8 @@ protected NPC createNPC(Entity base, String name, Vector3d offset) {

@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);
}
}
Expand Down

0 comments on commit 3d44a09

Please sign in to comment.