mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02:00
Merge branch 'dev' of https://git.krews.org/morningstar/Arcturus-Community into dev222
This commit is contained in:
commit
38f09b3313
|
@ -761,6 +761,8 @@ public class RoomUnit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public RoomTile getClosestAdjacentTile(short x, short y, boolean diagonal) {
|
public RoomTile getClosestAdjacentTile(short x, short y, boolean diagonal) {
|
||||||
|
if(room == null) return null;
|
||||||
|
|
||||||
RoomTile baseTile = room.getLayout().getTile(x, y);
|
RoomTile baseTile = room.getLayout().getTile(x, y);
|
||||||
|
|
||||||
if (baseTile == null) return null;
|
if (baseTile == null) return null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user