You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-20 15:36:17 +00:00
🆙 Fix idle
This commit is contained in:
+3
-3
@@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>25</maven.compiler.source>
|
||||||
<maven.compiler.target>21</maven.compiler.target>
|
<maven.compiler.target>25</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.13.0</version>
|
<version>3.15.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>19</source>
|
<source>19</source>
|
||||||
<target>19</target>
|
<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.Habbo;
|
||||||
import com.eu.habbo.habbohotel.users.HabboGender;
|
import com.eu.habbo.habbohotel.users.HabboGender;
|
||||||
import com.eu.habbo.habbohotel.users.HabboItem;
|
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.WiredFreezeUtil;
|
||||||
import com.eu.habbo.habbohotel.wired.core.WiredManager;
|
import com.eu.habbo.habbohotel.wired.core.WiredManager;
|
||||||
import com.eu.habbo.habbohotel.wired.core.WiredMoveCarryHelper;
|
import com.eu.habbo.habbohotel.wired.core.WiredMoveCarryHelper;
|
||||||
import com.eu.habbo.habbohotel.wired.core.WiredUserMovementHelper;
|
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.generic.alerts.GenericErrorMessagesComposer;
|
||||||
import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
|
import com.eu.habbo.messages.outgoing.inventory.AddPetComposer;
|
||||||
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetComposer;
|
import com.eu.habbo.messages.outgoing.rooms.pets.RoomPetComposer;
|
||||||
@@ -1262,10 +1262,15 @@ public class RoomUnitManager {
|
|||||||
if (habbo == null || habbo.getRoomUnit() == null) {
|
if (habbo == null || habbo.getRoomUnit() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean wasIdle = habbo.getRoomUnit().isIdle();
|
||||||
habbo.getRoomUnit().resetIdleTimer();
|
habbo.getRoomUnit().resetIdleTimer();
|
||||||
|
|
||||||
|
if (wasIdle) {
|
||||||
this.room.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
|
this.room.sendComposer(new RoomUnitIdleComposer(habbo.getRoomUnit()).compose());
|
||||||
WiredManager.triggerUserUnidles(this.room, habbo.getRoomUnit());
|
WiredManager.triggerUserUnidles(this.room, habbo.getRoomUnit());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes a Habbo dance.
|
* Makes a Habbo dance.
|
||||||
@@ -1446,11 +1451,6 @@ public class RoomUnitManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== DISPOSAL ====================
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Disposes the unit manager.
|
|
||||||
*/
|
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
this.currentHabbos.clear();
|
this.currentHabbos.clear();
|
||||||
this.currentBots.clear();
|
this.currentBots.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user