mirror of
https://github.com/bdnugget/IdleRSC.git
synced 2026-11-07 07:57:27 +00:00
Fix getShouldSleep for Uranium server
This commit is contained in:
1 parent
a26341fc4d
commit
ff2543caa9
1 file changed
+6
-1
@@ -5064,8 +5064,13 @@ public class Controller {
|
||||
return mud.getIsSleeping();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not the player should sleep. Extra check with `getFatigue()` because callbacks.MessageCallback does not reliably set this from game messages.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public boolean getShouldSleep() {
|
||||
return shouldSleep;
|
||||
return shouldSleep || (isAuthentic() && getFatigue() >= 99);
|
||||
}
|
||||
|
||||
public void setShouldSleep(boolean shouldSleep) {
|
||||
|
||||
Reference in new issue
Block a user