mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-13 07:22:53 +08:00
Fix climb jump stamina (#2056)
* Fix climb jump stamina * Update StaminaManager.java --------- Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
This commit is contained in:
parent
d1c7ced0ef
commit
b4b8f1ec38
@ -413,7 +413,13 @@ public class StaminaManager extends BasePlayerManager {
|
||||
// Internal handler
|
||||
|
||||
private void handleImmediateStamina(GameSession session, @NotNull MotionState motionState) {
|
||||
if (currentState == motionState) return;
|
||||
if (currentState == motionState) {
|
||||
if (motionState.equals(MotionState.MOTION_STATE_CLIMB_JUMP)) {
|
||||
updateStaminaRelative(session, new Consumption(ConsumptionType.CLIMB_JUMP), true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
switch (motionState) {
|
||||
case MOTION_STATE_CLIMB ->
|
||||
updateStaminaRelative(session, new Consumption(ConsumptionType.CLIMB_START), true);
|
||||
|
Loading…
Reference in New Issue
Block a user