
Please change getOrigianalExperience to getDroppedExperience in LivingExperienceDropEvent
Deathawaits4 opened this issue ยท 0 comments
Versions (Be specific, do not write "latest"):
- Champions: 2.1.5.6
- Forge: 40.68
Observed Behavior: When using other mods that change the experience dropped by creatures, your mod does not stack with them. One example is Auto_leveling(this mod also uses getOriginalExperience instead of getDroppedExperience), A leveled Champion will only ever drop the original amount of experience no matter how high its level is. I noticed this after finishing my own mod that allows to change the experience of creatures via Datapack. My event runs on high priority, which means that all exp modifications should run with the new values, as long as the correct value is called by other mods. There is actually no reason i could think of to use the getOriginalExperience method as it is not compatible with other mods. I downloaded your code and fixed it for private use. I tested many different cases and could not find any issues.
Expected Behavior: Experience modification should stack
Steps to Reproduce:
- download a mod that changes experience of creatures
- get a creature as champion
- add some debug code to the LivingExperienceDropEvent and notice that values are completely off
...
Crash Log: Please use a paste site like gist.