]> git.somenet.org - factorio/some-disableenemygeneration.git/blob - control.lua
comitted control.lua (tree removal) - no functional changes, since the file was alway...
[factorio/some-disableenemygeneration.git] / control.lua
1
2 -- remove generated trees.
3 script.on_event(defines.events.on_chunk_generated, function(e)
4     for key, entity in pairs(e.surface.find_entities(e.area)) do
5         if entity.type == "tree" then
6             entity.destroy()
7         end
8     end
9 end)