mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 23:19:56 +08:00
More reliable stamina calculation
by separately handling immediate one-time cost and cost over time.
This commit is contained in:
committed by
Melledy
Unverified
parent
43c27c4679
commit
8e99cb4f35
@@ -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