Delay puzzle box mover's goal location setting (closes #335)

This commit is contained in:
Alejandro 2020-01-27 15:36:08 +02:00
parent 8d6677ab17
commit 1cfbac1cfb

View File

@ -1,5 +1,6 @@
package com.eu.habbo.habbohotel.items.interactions;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.gameclients.GameClient;
import com.eu.habbo.habbohotel.items.Item;
import com.eu.habbo.habbohotel.rooms.*;
@ -56,7 +57,7 @@ public class InteractionPuzzleBox extends HabboItem {
if (item == null || (item.getZ() <= this.getZ() && item.getBaseItem().allowWalk())) {
room.scheduledComposers.add(new FloorItemOnRollerComposer(this, null, tile, offset, room).compose());
client.getHabbo().getRoomUnit().setGoalLocation(boxLocation);
room.scheduledTasks.add(() -> client.getHabbo().getRoomUnit().setGoalLocation(boxLocation));
this.needsUpdate(true);
}
}