1.18.2 - "Perks.For_Event.SKILL_UP" Events Fire Incorrectly
MattB70 opened this issue ยท 1 comments
Describe the bug
"Perks.For_Event.SKILL_UP" events fire on respawn.
Expected behavior
"Perks.For_Event.SKILL_UP" events should fire once on skill up, and never any other time.
To Reproduce
Steps to reproduce the behavior:
- Set a "say" command for a Perks.For_Event.SKILL_UP event.
- die
- command will print to the chat
Screenshots
These chat messages should only fire on skill up, I also update a scoreboard objective to track stats as I mentioned wanting to do a couple years ago. This one bug is all that's stopping it.
Versions:
- Minecraft: (eg 1.18.2)
- Loader: (eg. Forge-40.2.21)
- PMMO: 1.18.2-6.2.6
This may be a duplicate of this issue that was fixed. If it was an easy fix, is it possible to patch this version pre-rework?
This still happens, but only with command perks. Perhaps it's related to the lack of propertyDefaults CompoundTag passed during it's registry? I wasn't able to clearly see anything wrong, but that's the only clear difference between the command perk and the others. Again, it's only happening with command perks, such as printing a command to chat, or storing a scoreboard element.