Anti-Cheese doesn't work as it should
Shadowyjp opened this issue ยท 1 comments
Describe the bug
Apparently anti-cheese doesnt use any "receive_damage" sources from pmmo-server.toml config file.
Expected behavior
Anti cheese should use all "receive_damage" even if one was added by the player in pmmo-server.toml
To Reproduce
Steps to reproduce the behavior:
- Add [AntiCheese.AFK.RECEIVE_DAMAGE]
- Take damage from a source other than mob attacks, like cactus or drowning
- AntiCheese doesnt active
- Infinity xp gain
Versions:
- Minecraft: (1.20.1)
- Loader: (Forge-47.2.20)
- PMMO: 1.20.1-1.2.20
Additional context
I tried with Resist 5 (100% dmg reduction) and with Anticheese in all Health Changes too.
This fix is going to require a rather intense rewrite. So i'm going to slate this for the 1.21 update. I will update the Wiki.
The problem is that the way xp values are obtained currently routes through the entity and to implement a fallback would require a very invasive change to the pipeline. I obviously need to make this change, but I'm not making major changes to 1.20 at this time.