mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +01:00
fixed nullpointer exception in RoomUnit.java
This commit is contained in:
parent
47e9d1a64b
commit
7ab78798b6
@ -761,6 +761,8 @@ public class RoomUnit {
|
||||
}
|
||||
|
||||
public RoomTile getClosestAdjacentTile(short x, short y, boolean diagonal) {
|
||||
if(room == null) return null;
|
||||
|
||||
RoomTile baseTile = room.getLayout().getTile(x, y);
|
||||
|
||||
if (baseTile == null) return null;
|
||||
|
Loading…
Reference in New Issue
Block a user