From 5ee8a8e219aa92a844fbca4d8c1d3d414e40b37a Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 26 Feb 2022 11:02:40 +0100 Subject: [PATCH] Fixes double stamina cost --- src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java index 149868f3..43c719e4 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java @@ -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)); }