Game Crash – Chaos Spawner Entity Causes NullPointerException (v1.5, Forge 1.20.1)
MartinVR009 opened this issue · 6 comments
I encountered a game crash while using Dungeon Now Loading v1.5 on Forge 1.20.1. The crash happens when the Chaos Spawner entity tries to access a missing or null damage source. This results in a NullPointerException, causing the server to crash.
Steps to Reproduce:
Encounter a Chaos Spawner entity (either naturally or by summoning).
The game crashes due to a missing damage source reference.
Crash Report Message :
java.lang.NullPointerException: Cannot invoke
"net.minecraft.world.damagesource.DamageSource.m_7639_()"
because "this.killedDamageSource" is null
at dev.hexnowloading.dungeonnowloading.entity.boss.ChaosSpawnerEntity.m_6153_(ChaosSpawnerEntity.java:556)
I have the exact same issue here, essentially just happened to me a couple hours ago.
Though in my case i did a command (/kill @e) Wich might have been the thing that triggered it.
Here's my crashlog just incase:
Was driving me nuts what was causing the crash but yes this happens to me too!
Is this really related to my PR? I don't think it changes anything related to chunk loading/statistics.