1.18.2 - Command Perk Not Honoring It's Parent Event
MattB70 opened this issue ยท 1 comments
Describe the bug
This is related to #525 , but I don't think it's exactly the same issue.
When assigning a command perk to Event.SKILL_UP, the command fires on respawn as per #525 .
When assigning a command perk to Event.RESPAWN, the command does not fire on respawn.
This happens on a clean or an unclean pack, dedicated server or not.
Expected behavior
Respawn events should fire commands on respawn, and Skill_up events should not.
To Reproduce
Steps to reproduce the behavior:
- See example pmmo-Perks.toml screenshot below.
- respawn
- See example chat log.
Versions:
- Minecraft: 1.18.2
- Loader: Forge-40.2.21
- PMMO: 1.18.2-6.2.7
Additional context
I've now read the event handling, and still have no idea why this happens. Loggy logs nothing insightful. The most I can assume is that it's related to the command perk itself, and not any events, as other perks no longer fire incorrectly on respawn as per 93d6964