mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-08-20 12:54:03 +02:00
Location-safe
This commit is contained in:
parent
d28c35fd60
commit
ae199ad98a
|
@ -14,6 +14,8 @@ public class CurrentLocation extends Trait {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Location getLocation() {
|
public Location getLocation() {
|
||||||
|
if (loc.getWorld() == null)
|
||||||
|
return null;
|
||||||
return loc;
|
return loc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user