whizzball1 / ApatheticMobs

Makes mobs ignore players
MIT License
2 stars 5 forks source link

Crash on load in combination with Mystic World #6

Closed jolandepoel closed 5 years ago

jolandepoel commented 5 years ago

Can I just say: thank you so much for making this! I tried peaceful scripts, but if it doesn't come with the pack (like in Undiscovered) it's a real hassle. This is an excellent alternative.

I'm playing Enigmatica 2, but always update everything to the latest version that works, including my forge version.

Unfortunately, now it crashes. I installed it without editing any of the config, and it worked. But now I've changed the config to mobs taking revenge and I get a Mystic World crash, but scanning the log, Apathetic Mobs seems to be the culprit instead. Disabling only Apathetic Mobs fixes it, disabling Mystic World (which automatically disabled Roots) fixes it, and disabling Revenge Mode fixes it. Enabling Revenge Mode but disabling the revenge timer still crashes it.

Crash report: https://pastebin.com/exf1MX59

I will post this to the Mystic World issue tracker as well, in case that's helpful.

noobanidus commented 5 years ago

This is most likely (I haven't looked at the code yet) a result of the instantiation of entities with a null world for Just Enough Resources integration triggering the capability attachment. You probably just want to bail if entity.(get?)world is null.

whizzball1 commented 5 years ago

Thanks for letting me know, both of you! Based on @duely's comment I think I can fix this. I'll let you know when I've pushed the new version.

whizzball1 commented 5 years ago

https://github.com/whizzball1/ApatheticMobs/releases/tag/1.4.1-hotfix

Please test this release!

jolandepoel commented 5 years ago

That fixed it perfectly.