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:
@@ -68,7 +68,7 @@ public class DungeonSchematic extends Schematic {
|
||||
|
||||
public Point3D getEntranceDoorLocation()
|
||||
{
|
||||
return entranceDoorLocation.clone();
|
||||
return (entranceDoorLocation != null) ? entranceDoorLocation.clone() : null;
|
||||
}
|
||||
|
||||
private DungeonSchematic()
|
||||
|
||||
Reference in New Issue
Block a user