Fixed Bug in DungeonSchematic

Fixed a bug in DungeonSchematic that would cause a mysterious
NullPointerException if a dungeon schematic was missing it's entrance
door.
This commit is contained in:
SenseiKiwi 2014-01-06 00:08:25 -04:00
parent 39f6d297cd
commit a8c3dfb524

View file

@ -68,7 +68,7 @@ public class DungeonSchematic extends Schematic {
public Point3D getEntranceDoorLocation()
{
return entranceDoorLocation.clone();
return (entranceDoorLocation != null) ? entranceDoorLocation.clone() : null;
}
private DungeonSchematic()