mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Fixed double stamina cost
This commit is contained in:
parent
87331e11ff
commit
06cb854b77
@ -570,7 +570,6 @@ public class PlayerData extends OfflinePlayerData {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// Use updated amount from Bukkit event
|
// Use updated amount from Bukkit event
|
||||||
setStamina(stamina + event.getAmount());
|
|
||||||
stamina = Math.max(0, Math.min(stamina + event.getAmount(), max));
|
stamina = Math.max(0, Math.min(stamina + event.getAmount(), max));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user