Closed dn1s closed 1 year ago
I checked the spigotmc javadocs https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#getTotalExperience() It's a bit confusing
This is correct:
This refers to the total amount of experience the player has collected over time and is not currently displayed to the client.
This is wrong in the docs:
Returns: Current total experience points
I think to fix this issue method computeXpToStore()
has to be changed to calculate current level from player.getLevel() + player.getExp()
Possible fix in https://github.com/apavarino/Deadchest/pull/58
Thanks for the good report ! I will look at that
Fixed on 1.16.1
Players end up with more experience than they had while dying.
Steps to reproduce the behavior:
Expected behavior A player regains the experience he lost when dying, not highest experience he has achived.
Screenshots Dying with level 47:
Got chest and ended up being level 98: