[BUG] XP Gains are bugged with /team command.
Kamisoi opened this issue ยท 3 comments
Technical Specs (please complete the following information):
- Craft to Exile Version 1.3.9b
- World Type Multiplayer
Describe the bug
A clear and concise description of what the bug is:
There seems to be issue with players nearby in Minecraft /team that they only get 1xp per hostile mob kill. Issue was found on Meowstard's Community Server and reported by players to admins, but since they don't change even one bit in config files, seems like modpack issue.
To Reproduce
Steps to reproduce the behavior:
- Get into party with other player on same level
- Try farming mobs
- ???
- No profit :d
Expected behavior
A clear and concise description of what you expected to happen:
Players should be given proper amount of XP.
It seems to happen randomly.. not really sure what's causing it. I'll take a better look at the source code and see possibilities
This happens because the exp being split gets cast as an integer, which floors the value. So if you gain 3.9 exp between 4 people, it's split as 0.975 exp which gets floored to 0.