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:
parent
39f6d297cd
commit
a8c3dfb524
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public class DungeonSchematic extends Schematic {
|
|||
|
||||
public Point3D getEntranceDoorLocation()
|
||||
{
|
||||
return entranceDoorLocation.clone();
|
||||
return (entranceDoorLocation != null) ? entranceDoorLocation.clone() : null;
|
||||
}
|
||||
|
||||
private DungeonSchematic()
|
||||
|
|
Loading…
Reference in a new issue