Don't get a location from a null value, fixes #46

This commit is contained in:
graywolf336 2015-02-09 23:38:30 -06:00
parent f56ed7068d
commit 0cb6d7ca84

View File

@ -114,7 +114,7 @@ public class Cell {
* @return The location of the chest, null if none.
*/
public Location getChestLocation() {
return this.chest.getLocation();
return this.chest == null ? null : this.chest.getLocation();
}
/**