Fixes double stamina cost

This commit is contained in:
Indyuce 2022-02-26 11:02:40 +01:00
parent 680c7c50ba
commit 5ee8a8e219

View File

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