From da2e78697bd1e256b2d0893948ba714ed2b46b87 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Tue, 28 Jan 2020 13:55:07 +0200 Subject: [PATCH] Match puzzlebox behaviour to Habbo --- .../items/interactions/InteractionPuzzleBox.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 0d6b0509..ca1e4d6e 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 @@ -24,9 +24,6 @@ public class InteractionPuzzleBox extends HabboItem { @Override public void onClick(GameClient client, Room room, Object[] objects) throws Exception { - if (client.getHabbo().getRoomUnit().hasStatus(RoomUnitStatus.MOVE)) - return; - RoomTile boxLocation = room.getLayout().getTile(this.getX(), this.getY()); RoomUserRotation rotation = null; @@ -80,7 +77,11 @@ public class InteractionPuzzleBox extends HabboItem { room.updateItem(this); room.scheduledComposers.add(new FloorItemOnRollerComposer(this, null, tile, 0, room).compose()); - room.scheduledTasks.add(() -> client.getHabbo().getRoomUnit().setGoalLocation(boxLocation)); + room.scheduledTasks.add(() -> { + client.getHabbo().getRoomUnit().setGoalLocation(boxLocation); + + room.scheduledTasks.add(() -> client.getHabbo().getRoomUnit().setGoalLocation(boxLocation)); + }); this.needsUpdate(true); }