mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +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