mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Delay puzzle box mover's goal location setting (closes #335)
This commit is contained in:
parent
8d6677ab17
commit
1cfbac1cfb
@ -1,5 +1,6 @@
|
|||||||
package com.eu.habbo.habbohotel.items.interactions;
|
package com.eu.habbo.habbohotel.items.interactions;
|
||||||
|
|
||||||
|
import com.eu.habbo.Emulator;
|
||||||
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
||||||
import com.eu.habbo.habbohotel.items.Item;
|
import com.eu.habbo.habbohotel.items.Item;
|
||||||
import com.eu.habbo.habbohotel.rooms.*;
|
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())) {
|
if (item == null || (item.getZ() <= this.getZ() && item.getBaseItem().allowWalk())) {
|
||||||
room.scheduledComposers.add(new FloorItemOnRollerComposer(this, null, tile, offset, room).compose());
|
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);
|
this.needsUpdate(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user