Location-safe

This commit is contained in:
fullwall 2012-11-21 20:22:59 +08:00
parent d28c35fd60
commit ae199ad98a

View File

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