DDDCombatRules.getLastHit(UUID) should return an Optional<HitInfo> to avoid NPE's or be changed altogether
yeelp opened this issue ยท 1 comments
Mods like 12M (MmmMmmMmmMmm) fire their own LivingHurtEvent without a LivingAttackEvent. This reveals a fundamental problem:
If a LivingHurtEvent is fired without a LivingAttackEvent, the whole thing crashes.
Either wrap the HitInfo in an Optional, or redo the damage calculation process.
Tentacle Pastbin:
https://pastebin.com/rLZgLt75
One More:
https://pastebin.com/uVE6je3a
Notes:
- When tentacle spawn via egg it crashes too
- Also when it only fall one block from tainted block to a grass block it crashes
- Spawning it mid air (and let it fall some blocks) cause no crash