mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 20:25:19 +01:00
Location-safe
This commit is contained in:
parent
62d3eb8234
commit
4ec8a3c280
@ -14,6 +14,8 @@ public class CurrentLocation extends Trait {
|
||||
}
|
||||
|
||||
public Location getLocation() {
|
||||
if (loc.getWorld() == null)
|
||||
return null;
|
||||
return loc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user