mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 19:16:34 +01:00
Implement NPC#getStoredLocation
This commit is contained in:
parent
a47e05728a
commit
34c61dcc07
@ -84,6 +84,11 @@ public class CitizensNPC extends AbstractNPC {
|
||||
return navigator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Location getStoredLocation() {
|
||||
return isSpawned() ? getBukkitEntity().getLocation() : getTrait(CurrentLocation.class).getLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSpawned() {
|
||||
return getBukkitEntity() != null;
|
||||
|
Loading…
Reference in New Issue
Block a user