Fix avatars not rotating with wf_act_match_to_sshot (fixes #314)

This commit is contained in:
Alejandro 2020-01-24 20:03:04 +02:00
parent f695f2f5b4
commit b425bb6856

View File

@ -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());