jonathan-robertson / amnesia

7 Days to Die mod: Reset player progress after dying under a configurable set of circumstances

Home Page:https://discord.gg/hYa2sNHXya

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix NRE in EntityKilled.Handle

jonathan-robertson opened this issue · comments

2022-09-26T23:22:00 1189.580 EXC Object reference not set to an instance of an object
at Amnesia.Handlers.EntityKilled.Handle (Entity killedEntity, Entity killerEntity) [0x00000] in <77e44bbccb234bb7ac057ede33f51237>:0

UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
Amnesia.Utilities.ModLog:Error(String, Exception)
Amnesia.Handlers.EntityKilled:Handle(Entity, Entity)
ModEvent`2:Invoke(Entity, Entity)
EntityAlive:DMD<EntityAlive::OnEntityDeath>(EntityAlive)
EntityAnimal:OnEntityDeath()
EntityAlive:DMD<EntityAlive::ClientKill>(EntityAlive, DamageResponse)
EntityAlive:Kill(DamageResponse)
EntityAlive:ProcessDamageResponseLocal(DamageResponse)
EntityAlive:damageEntityLocal(DamageSource, Int32, Boolean, Single)
EntityAlive:DamageEntity(DamageSource, Int32, Boolean, Single)
EntityAnimal:DamageEntity(DamageSource, Int32, Boolean, Single)
BlockDamage:OnEntityCollidedWithBlock(WorldBase, Int32, Vector3i, BlockValue, Entity)
ChunkCluster:CheckCollisionWithBlocks(Entity)
World:CheckEntityCollisionWithBlocks(Entity)
Entity:ccEntityCollisionResults()
Entity:ccEntityCollision(Vector3)
Entity:entityCollision(Vector3)
EntityAlive:DefaultMoveEntity(Vector3, Boolean)
EntityAlive:MoveEntityHeaded(Vector3, Boolean)
EntityAlive:OnUpdateLive()
EntityAnimal:OnUpdateLive()
EntityAlive:OnUpdateEntity()
World:TickEntity(Entity, Single)
World:TickEntitiesSlice(Int32)
World:TickEntitiesFlush()
World:TickEntities(Single)
GameManager:UpdateTick()
GameManager:gmUpdate()
GameManager:Update()