Fix for being able to walk on furniture that has 8 rotations #1727

This commit is contained in:
Yordi 2023-01-18 09:55:51 +01:00 committed by yordii
parent 0f3ca7807e
commit a9d7960405

View File

@ -612,6 +612,11 @@ public class RoomLayout {
}
}
}
} else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) {
RoomTile t = this.getTile(tile.getX(), tile.getY());
if (t == null || t.getState() == RoomTileState.INVALID) {
return false;
}
}
}
@ -642,9 +647,13 @@ public class RoomLayout {
}
}
}
} else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) {
RoomTile t = this.getTile(tile.getX(), tile.getY());
if (t != null) {
pointList.add(t);
}
}
}
return pointList;
}
}