🆙 Fix idle

This commit is contained in:
duckietm
2026-04-13 08:31:38 +02:00
parent 9867c3bf94
commit f18eeb7d67
2 changed files with 11 additions and 11 deletions
@@ -12,11 +12,11 @@ import com.eu.habbo.habbohotel.users.DanceType;
import com.eu.habbo.habbohotel.users.Habbo;
import com.eu.habbo.habbohotel.users.HabboGender;
import com.eu.habbo.habbohotel.users.HabboItem;
import com.eu.habbo.habbohotel.wired.WiredUserActionType;
import com.eu.habbo.habbohotel.wired.core.WiredFreezeUtil;
import com.eu.habbo.habbohotel.wired.core.WiredManager;
import com.eu.habbo.habbohotel.wired.core.WiredMoveCarryHelper;
import com.eu.habbo.habbohotel.wired.core.WiredUserMovementHelper;
import com.eu.habbo.habbohotel.wired.WiredUserActionType;
import com.eu.habbo.messages.outgoing.generic.alerts.GenericErrorMessagesComposer;
import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetComposer;
@@ -1262,9 +1262,14 @@ public class RoomUnitManager {
if (habbo == null || habbo.getRoomUnit() == null) {
return;
}
boolean wasIdle = habbo.getRoomUnit().isIdle();
habbo.getRoomUnit().resetIdleTimer();
this.room.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
WiredManager.triggerUserUnidles(this.room, habbo.getRoomUnit());
if (wasIdle) {
this.room.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
WiredManager.triggerUserUnidles(this.room, habbo.getRoomUnit());
}
}
/**
@@ -1446,11 +1451,6 @@ public class RoomUnitManager {
}
}
// ==================== DISPOSAL ====================
/**
* Disposes the unit manager.
*/
public void dispose() {
this.currentHabbos.clear();
this.currentBots.clear();