mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Merge branch 'patch-npe-RoomUnit' into 'dev'
fixed nullpointer exception in RoomUnit.java See merge request morningstar/Arcturus-Community!106
This commit is contained in:
commit
c95cc3f730
@ -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