Fix puzzle boxes going through the wall (closes #340)

This commit is contained in:
Alejandro 2020-01-27 23:48:34 +02:00
parent aff9e75fe1
commit ae9e6cfa62

View File

@ -62,7 +62,7 @@ public class InteractionPuzzleBox extends HabboItem {
RoomTile tile = room.getLayout().getTileInFront(room.getLayout().getTile(this.getX(), this.getY()), rotation.getValue());
if (tile == null || room.hasHabbosAt(tile.x, tile.y)) {
if (tile == null || tile.getState() == RoomTileState.INVALID || room.hasHabbosAt(tile.x, tile.y)) {
return;
}