Bugfix for rotationtrait
This commit is contained in:
parent
8719c1f182
commit
6ff59a1fe0
|
@ -64,7 +64,7 @@ public class RotationTrait extends Trait {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Location getEyeLocation() {
|
private Location getEyeLocation() {
|
||||||
return npc instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
|
return npc.getEntity() instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
|
||||||
: npc.getEntity().getLocation();
|
: npc.getEntity().getLocation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue