mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-03-29 03:52:37 +02:00
Flight stamina cost -20% when Amber or Venti in team
- Reduced stamina not tested in MP. - Stop MovementManager ticker when player goes offline.
This commit is contained in:
@@ -1151,8 +1151,11 @@ public class Player {
|
||||
}
|
||||
|
||||
public void onLogout() {
|
||||
// stop stamina calculation
|
||||
getMovementManager().resetTimer();
|
||||
|
||||
// force to leave the dungeon
|
||||
if(getScene().getSceneType() == SceneType.SCENE_DUNGEON){
|
||||
if (getScene().getSceneType() == SceneType.SCENE_DUNGEON) {
|
||||
this.getServer().getDungeonManager().exitDungeon(this);
|
||||
}
|
||||
// Leave world
|
||||
|
||||
Reference in New Issue
Block a user