mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-12 23:14:38 +01: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user