Location-safe

This commit is contained in:
fullwall 2012-11-21 20:22:59 +08:00
parent 62d3eb8234
commit 4ec8a3c280
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ public class CurrentLocation extends Trait {
}
public Location getLocation() {
if (loc.getWorld() == null)
return null;
return loc;
}