mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +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;
|
return navigator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Location getStoredLocation() {
|
||||||
|
return isSpawned() ? getBukkitEntity().getLocation() : getTrait(CurrentLocation.class).getLocation();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSpawned() {
|
public boolean isSpawned() {
|
||||||
return getBukkitEntity() != null;
|
return getBukkitEntity() != null;
|
||||||
|
Loading…
Reference in New Issue
Block a user