Clear dance when avatar idles (fixes #309)

This commit is contained in:
Alejandro 2020-01-24 20:34:27 +02:00
parent 015f72bce8
commit 1b5517f677

View File

@ -4160,6 +4160,11 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
public void idle(Habbo habbo) {
habbo.getRoomUnit().setIdle();
if (habbo.getRoomUnit().getDanceType() != DanceType.NONE) {
this.dance(habbo, DanceType.NONE);
}
this.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
WiredHandler.handle(WiredTriggerType.IDLES, habbo.getRoomUnit(), this, new Object[]{habbo});
}