EvilCraft

EvilCraft

19M Downloads

Lightning striking villagers causing crash when werewolves disabled.

kragnoth opened this issue ยท 1 comments

commented

Forge log link: http://pastebin.com/z7MFg8jS

Problem: Crash on villager struck by lightning. Null pointer exception occurs, as I have werewolves disabled, and it is trying to change the villager profession to a non-registered profession.

Expected behaviour: Villager turned into werewolf profession if config is enabled, villager turned into witch if config is disabled

Shoot lightning at villagers.

commented

btw, if you want an easy way to test this, grab Psi or write a test mod that lets you shoot lightning bolts. I only noticed it because crops get hit by lightning randomly in my custom modpack, and I kept randomly crashing.