mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Clear dance when avatar idles (fixes #309)
This commit is contained in:
parent
015f72bce8
commit
1b5517f677
@ -4160,6 +4160,11 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
|||||||
|
|
||||||
public void idle(Habbo habbo) {
|
public void idle(Habbo habbo) {
|
||||||
habbo.getRoomUnit().setIdle();
|
habbo.getRoomUnit().setIdle();
|
||||||
|
|
||||||
|
if (habbo.getRoomUnit().getDanceType() != DanceType.NONE) {
|
||||||
|
this.dance(habbo, DanceType.NONE);
|
||||||
|
}
|
||||||
|
|
||||||
this.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
|
this.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
|
||||||
WiredHandler.handle(WiredTriggerType.IDLES, habbo.getRoomUnit(), this, new Object[]{habbo});
|
WiredHandler.handle(WiredTriggerType.IDLES, habbo.getRoomUnit(), this, new Object[]{habbo});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user