Bugfix for rotationtrait

This commit is contained in:
fullwall 2023-08-08 22:44:23 +08:00
parent 8719c1f182
commit 6ff59a1fe0

View File

@ -64,7 +64,7 @@ public class RotationTrait extends Trait {
}
private Location getEyeLocation() {
return npc instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
return npc.getEntity() instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
: npc.getEntity().getLocation();
}