From 8c4a44e3e7e97b7776dfdacbc2502bdbf34b8744 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Tue, 28 Jan 2020 13:51:55 +0200 Subject: [PATCH] Fix #349 --- .../habbohotel/items/interactions/InteractionPuzzleBox.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPuzzleBox.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPuzzleBox.java index 6a2bfe80..0d6b0509 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPuzzleBox.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionPuzzleBox.java @@ -60,6 +60,8 @@ public class InteractionPuzzleBox extends HabboItem { return; } + super.onClick(client, room, new Object[]{"TOGGLE_OVERRIDE"}); + RoomTile tile = room.getLayout().getTileInFront(room.getLayout().getTile(this.getX(), this.getY()), rotation.getValue()); if (tile == null || tile.getState() == RoomTileState.INVALID || room.hasHabbosAt(tile.x, tile.y)) { @@ -80,8 +82,6 @@ public class InteractionPuzzleBox extends HabboItem { room.scheduledComposers.add(new FloorItemOnRollerComposer(this, null, tile, 0, room).compose()); room.scheduledTasks.add(() -> client.getHabbo().getRoomUnit().setGoalLocation(boxLocation)); this.needsUpdate(true); - - super.onClick(client, room, new Object[]{"TOGGLE_OVERRIDE"}); } @Override