Update tree-decon.lua

This commit is contained in:
phidias authored and GitHub committed 2023-10-14 02:15:19 +09:00
1 parent 193f3e3b88
commit fe1ee200e2
1 file changed
+2 -2
+2 -2
View File
@@ -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