mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Fixes double stamina cost
This commit is contained in:
parent
680c7c50ba
commit
5ee8a8e219
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user