mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-20 07:23:13 +09:00
Update tree-decon.lua
This commit is contained in:
1 parent
193f3e3b88
commit
fe1ee200e2
1 file changed
+2
-2
@@ -102,11 +102,11 @@ Event.add(defines.events.on_entity_damaged, function(event)
|
|||||||
if not (event.damage_type.name == 'impact' and event.force) then
|
if not (event.damage_type.name == 'impact' and event.force) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not (event.entity.type == 'tree' or event.entity.type == 'simple-entity') then
|
if not (event.entity.type == 'tree' or event.entity.type == 'simple-entity') then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if (not event.cause) or (event.cause.type ~= 'car')then
|
if (not event.cause) or (event.cause.type ~= 'car')then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user