From fe1ee200e2ce36488e51dd17ef814101a7c01440 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 14 Oct 2023 02:15:19 +0900 Subject: [PATCH] Update tree-decon.lua --- modules/addons/tree-decon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/addons/tree-decon.lua b/modules/addons/tree-decon.lua index 1f594366..84194d7c 100644 --- a/modules/addons/tree-decon.lua +++ b/modules/addons/tree-decon.lua @@ -102,11 +102,11 @@ Event.add(defines.events.on_entity_damaged, function(event) if not (event.damage_type.name == 'impact' and event.force) then return end - + if not (event.entity.type == 'tree' or event.entity.type == 'simple-entity') then return end - + if (not event.cause) or (event.cause.type ~= 'car')then return end