mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-30 13:09:10 +01:00
Location-safe
This commit is contained in:
parent
d28c35fd60
commit
ae199ad98a
@ -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