1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

kill inactive turrets with 0 health

This commit is contained in:
grilledham 2019-06-19 18:01:22 +01:00
parent b723ccf36a
commit e579783899

View File

@ -23,6 +23,12 @@ entity_built_callback =
return
end
if entity.health == 0 then
entity.active = true
entity.die('enemy')
return
end
local tick = data.tick
local now = game.tick
if now >= tick then