From: Someone <someone@somenet.org>
Date: Sat, 30 Nov 2024 23:16:47 +0000 (+0100)
Subject: comitted control.lua (tree removal) - no functional changes, since the file was alway... 
X-Git-Url: https://git.somenet.org/factorio/some-disableenemygeneration.git/commitdiff_plain?ds=inline

comitted control.lua (tree removal) - no functional changes, since the file was always budled in the zip.
---

diff --git a/control.lua b/control.lua
new file mode 100644
index 0000000..32cdc8b
--- /dev/null
+++ b/control.lua
@@ -0,0 +1,9 @@
+
+-- remove generated trees.
+script.on_event(defines.events.on_chunk_generated, function(e)
+    for key, entity in pairs(e.surface.find_entities(e.area)) do
+        if entity.type == "tree" then
+            entity.destroy()
+        end
+    end
+end)