mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Update tree-decon.lua
This commit is contained in:
@@ -103,7 +103,13 @@ Event.add(defines.events.on_entity_damaged, function(event)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if event.entity.type == 'tree' or event.entity.type == 'simple-entity' then
|
if not (event.entity.type == 'tree' or event.entity.type == 'simple-entity') then
|
||||||
event.entity.destroy()
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (not event.cause) or (event.cause.type ~= 'car')then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
event.entity.destroy()
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user