Fixed double stamina cost

This commit is contained in:
Indyuce 2021-10-28 23:00:57 +02:00
parent 87331e11ff
commit 06cb854b77

View File

@ -570,7 +570,6 @@ public class PlayerData extends OfflinePlayerData {
return;
// Use updated amount from Bukkit event
setStamina(stamina + event.getAmount());
stamina = Math.max(0, Math.min(stamina + event.getAmount(), max));
}