update hologram location on npc type change

This commit is contained in:
D3v1s0m 2024-07-01 10:06:35 +05:30
parent d48de6382a
commit 18cdef4527
No known key found for this signature in database
GPG key ID: FA1F770C7B1D40C1

View file

@ -56,6 +56,7 @@ public class NpcImpl extends Viewable implements Npc {
UNSAFE_hideAll();
this.type = type;
entity = new PacketEntity(packetFactory, this, type.getType(), entity.getLocation());
hologram.setLocation(location.withY(location.getY() + type.getHologramOffset()));
UNSAFE_showAll();
}