Mob with ~onDamaged whilst standing p.e. in lava generates massive lags in 5.4.1
Summary If a MythicMob has the ~onDamaged mechanic and receives permanent damage, the entire server will start lagging after a short time. In our case, the mob was in lava.
Steps to reproduce
- Use MythicMobs 5.4.1 (with 5.3.5 mob is getting damage animation in lava and creates no lag at all; in 5.4.1 there is no damage animation and lag)
- Create MythicMob with ~onDamaged, p.e. our mob: https://pastebin.com/YgaGEkb0
- Spawn 2-5 of them inside lava and wait 2-5 minutes - tps should drop significant
Current behavior
The server starts lagging after a few minutes when the mob (or more) standing in lava, timings: https://i.imgur.com/7NJzD3O.png
Intended correct behavior
The TPS from the server do not collapse
Server log file
https://pastebin.com/nqrMCbuh (mythic relevant)
Debug log snippet
Proposed fixes
see above (Intended correct behavior)