Crashing in multiplayer
zowner323 opened this issue ยท 1 comments
General Information
Describe the bug:
When attacking or being attacked by a mob, the server crashes. Also delayed and unusual AI responses
To Reproduce:
- Spawn a hostile mob
- Let it attack you, or you attack it
- Crash
Expected behavior:
Server crash/ buggy AI
Environment Versions
Versions:
- Metallurgy: 1.2.3
- Conflicting mod (if regarding mod integration):
- Other mods you think could cause issues:
- Forge: 14.23.5.2854
- Minecraft: 1.12.2
- Modpack (if available): private - dm
Logging Information
Please Use gist, paste.ee, pastebin or some other log sharing service
Crash Report (if available):
<script src="https://paste.ee/e/HizZ4/0"></script>I can't reproduce the actual crash, but I can see what should've caused it, so I've just if-checked my way out of that edge case (LivingSetAttackTargetEvent shouldn't actually be fired for players since they don't have an AI)
I've also added another event that modifies the Visibility of the player to be 0 so that the event handler to disable mob's AI isn't called too frequently (should fix the AI jankiness)
I'll soon release a patch with this fix, when you have some time please tell me if this is still a thing or if it works fine