mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 04:35:50 +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() {
|
||||
return npc instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
|
||||
return npc.getEntity() instanceof LivingEntity ? ((LivingEntity) npc.getEntity()).getEyeLocation()
|
||||
: npc.getEntity().getLocation();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user