Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experience levels changed suddenly, or are inaccurate #2

Open
Icohedron opened this issue Aug 5, 2017 · 0 comments
Open

Experience levels changed suddenly, or are inaccurate #2

Icohedron opened this issue Aug 5, 2017 · 0 comments
Labels

Comments

@Icohedron
Copy link
Owner

Icohedron commented Aug 5, 2017

Experience levels may change unpredictably or may be entirely inaccurate due to these bugs:

Player levels may jump up by 1 level after using '/bottle 0'
SpongePowered/SpongeVanilla#340

The experience lost after enchanting or using an anvil can be regained after using the command '/bottle 0'
SpongePowered/Sponge#1322

The problem is, as stated, that the Minecraft server tracks total experience and levels (and the current fraction of experience between two levels) separately. When changing a player's total experience via the /xp command, Minecraft also ensures that the experience levels are updated. However, this does not happen the other way around, if the levels are updated, the xp is not. This doesn't just happen using the /xp command, you also observe this behaviour when you repair an item using an anvil and enchant an item using the enchantment table. -- dualsprial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant