From b425bb6856234b37ad988e413bb65d1f54d53f38 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Fri, 24 Jan 2020 20:03:04 +0200 Subject: [PATCH] Fix avatars not rotating with wf_act_match_to_sshot (fixes #314) --- .../wired/effects/WiredEffectMatchFurni.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java index e461c25b..9ee38399 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectMatchFurni.java @@ -60,6 +60,17 @@ public class WiredEffectMatchFurni extends InteractionWiredEffect { if (this.direction) { item.setRotation(setting.rotation); slideAnimation = false; + + room.scheduledTasks.add(() -> { + room.getLayout().getTilesAt(room.getLayout().getTile(item.getX(), item.getY()), item.getBaseItem().getWidth(), item.getBaseItem().getLength(), oldRotation).forEach(t -> { + room.updateBotsAt(t.x, t.y); + room.updateHabbosAt(t.x, t.y); + }); + room.getLayout().getTilesAt(room.getLayout().getTile(item.getX(), item.getY()), item.getBaseItem().getWidth(), item.getBaseItem().getLength(), setting.rotation).forEach(t -> { + room.updateBotsAt(t.x, t.y); + room.updateHabbosAt(t.x, t.y); + }); + }); } //room.sendComposer(new ItemStateComposer(item).compose());