Open SimPiko opened 6 years ago
I'm guessing the issue I was about to report is related to this one. The amount of taken exp when you don't have enough for a single use on the current level on usage, it will take almost half of the previous level upon use, then back to taking a small amount.
Here is a gif: http://g.recordit.co/iXFcCSIXqX.gif
Actually it's worser. You can dupe xp with this. I was level 56, close to 57, then I used the teleportation wand, and I jumped to level 57. http://recordit.co/MsqldETdsX http://g.recordit.co/MsqldETdsX.gif
Steps to reproduce:
Expected result: Exp bar should be full (or almost full), no matter what Exp level you have Actual result: Exp bar shows weird values.
While playing "Faster Technology" modpack, i've noticed that wands, when has taken whole Exp level, it restores only ~50% of EXP bar (at ~30lvl and up) and it restores more than a bar at ~5lvl or lower (the highlighted part of Exp bar goes waay to the right). I've quickly tested on mc1.12, it also happens there.
I've quickly looked in code here on GitHub, and looks like 'varia/Tools.java' uses pre-1.8 equations for calculating exp amount. It should be something like (at least according to Minecraft Wiki):
Offtopic-wise, there are probably more mods that somehow forgot to update that (i know Botania had that issue and yes, i know i copy-pasted text from it), but that's another
story/issue. Also, i don't know how to post issues properly and English isn't my first language, so i'm sorry if it's too wordy or weird too understand.