NBT crash on world load with Village Names installed
Electroblob77 opened this issue ยท 0 comments
Please read the guide for contributing before posting.
Minecraft version: 1.12.2
Wizardry version: 4.2.11
Environment: Any
Issue details: Reported on curseforge and Discord, village names is trying to name evil wizards from EntityJoinWorldEvent
(spawned from a custom drzhark spawner... whatever that is) and this process involves writing to nbt, but this fails because onInitialSpawn
hasn't been called yet, causing element to be null.
Other mods involved: Village Names
Relevant lines of stacktrace:
java.lang.NullPointerException
at electroblob.wizardry.entity.living.EntityEvilWizard.writeEntityToNBT(EntityEvilWizard.java:281)
at astrotibs.villagenames.handler.SpawnNamingHandler.onPopulating(SpawnNamingHandler.java:32)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_2288_SpawnNamingHandler_onPopulating_EntityJoinWorldEvent.invoke(.dynamic)