From 022c47d143ee90319f66aba2a094dbc5e26b73f7 Mon Sep 17 00:00:00 2001 From: RevenantX Date: Mon, 18 Nov 2024 15:21:18 +0200 Subject: [PATCH] remove check --- LiteEntitySystem/EntityLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LiteEntitySystem/EntityLogic.cs b/LiteEntitySystem/EntityLogic.cs index 63b5864..37fa808 100644 --- a/LiteEntitySystem/EntityLogic.cs +++ b/LiteEntitySystem/EntityLogic.cs @@ -256,9 +256,9 @@ internal override void DestroyInternal() if (Childs.Count > 0) { var childsCopy = Childs.ToArray(); - if (childsCopy != null) //notify child entities about parent destruction - foreach (var entityLogicRef in childsCopy) - EntityManager.GetEntityById(entityLogicRef)?.OnBeforeParentDestroy(); + //notify child entities about parent destruction + foreach (var entityLogicRef in childsCopy) + EntityManager.GetEntityById(entityLogicRef)?.OnBeforeParentDestroy(); } base.DestroyInternal();