Location-safe
This commit is contained in:
parent
62d3eb8234
commit
4ec8a3c280
|
@ -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