mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 09:54:59 +01:00
More reliable stamina calculation
by separately handling immediate one-time cost and cost over time.
This commit is contained in:
@@ -1152,7 +1152,7 @@ public class Player {
|
||||
|
||||
public void onLogout() {
|
||||
// stop stamina calculation
|
||||
getMovementManager().resetTimer();
|
||||
getMovementManager().stopSustainedStaminaHandler();
|
||||
|
||||
// force to leave the dungeon
|
||||
if (getScene().getSceneType() == SceneType.SCENE_DUNGEON) {
|
||||
|
||||
Reference in New Issue
Block a user