You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 15:06:19 +00:00
🆙 Fix idle
This commit is contained in:
+3
-3
@@ -10,8 +10,8 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<maven.compiler.source>25</maven.compiler.source>
|
||||
<maven.compiler.target>25</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
@@ -19,7 +19,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.13.0</version>
|
||||
<version>3.15.0</version>
|
||||
<configuration>
|
||||
<source>19</source>
|
||||
<target>19</target>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user