mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-27 17:52:03 +01:00
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
Block a user