]> git.somenet.org - factorio/RealisticDecorationCleanup.git/commitdiff
RELEASE 2.0.1 - Increased cleanup area by 0.6 so gleba gets its bushes cut down better master
authorSomeone <someone@somenet.org>
Thu, 9 Oct 2025 16:17:55 +0000 (18:17 +0200)
committerSomeone <someone@somenet.org>
Thu, 9 Oct 2025 16:17:55 +0000 (18:17 +0200)
changelog.txt
control.lua
info.json

index 015e3cc9ef6ff1dad3375754c4b65371e6e1d1f7..9b1042477ede840efd72ba0000e83c78d9b7ffeb 100644 (file)
@@ -1,3 +1,10 @@
+---------------------------------------------------------------------------------------------------
+Version: 2.0.1
+Date: 2025-10-09
+
+  Changed:
+    - Increased cleanup area by 0.6 so gleba gets its bushes cut down better.
+
 ---------------------------------------------------------------------------------------------------
 Version: 2.0.0
 Date: 2024-10-21
index 2c2c992c6ba1865874cd2503ec8df00eb6610455..ecfbeda623530155bd3b01c8917668fe7f1da134 100644 (file)
@@ -1,24 +1,24 @@
 --[[get rid of decorations under entities]]
 script.on_event(defines.events.on_built_entity, function(event)
     if event.entity.type ~= "entity-ghost" and event.entity.type ~= "tile-ghost" and event.entity.prototype.selectable_in_game then
-        game.surfaces[event.entity.surface_index].destroy_decoratives{area=event.entity.selection_box}
+        game.surfaces[event.entity.surface_index].destroy_decoratives{area={{event.entity.selection_box.left_top.x-0.6, event.entity.selection_box.left_top.y-0.6}, {event.entity.selection_box.right_bottom.x+0.6, event.entity.selection_box.right_bottom.y+0.6}}}
     end
 end)
 
 script.on_event(defines.events.on_robot_built_entity, function(event)
     if event.entity.type ~= "entity-ghost" and event.entity.type ~= "tile-ghost" and event.entity.prototype.selectable_in_game then
-        game.surfaces[event.entity.surface_index].destroy_decoratives{area=event.entity.selection_box}
+        game.surfaces[event.entity.surface_index].destroy_decoratives{area={{event.entity.selection_box.left_top.x-0.6, event.entity.selection_box.left_top.y-0.6}, {event.entity.selection_box.right_bottom.x+0.6, event.entity.selection_box.right_bottom.y+0.6}}}
     end
 end)
 
 script.on_event(defines.events.script_raised_built, function(event)
     if event.entity.type ~= "entity-ghost" and event.entity.type ~= "tile-ghost" and event.entity.prototype.selectable_in_game then
-        game.surfaces[event.entity.surface_index].destroy_decoratives{area=event.entity.selection_box}
+        game.surfaces[event.entity.surface_index].destroy_decoratives{area={{event.entity.selection_box.left_top.x-0.6, event.entity.selection_box.left_top.y-0.6}, {event.entity.selection_box.right_bottom.x+0.6, event.entity.selection_box.right_bottom.y+0.6}}}
     end
 end)
 
 script.on_event(defines.events.script_raised_revive, function(event)
     if event.entity.type ~= "entity-ghost" and event.entity.type ~= "tile-ghost" and event.entity.prototype.selectable_in_game then
-        game.surfaces[event.entity.surface_index].destroy_decoratives{area=event.entity.selection_box}
+        game.surfaces[event.entity.surface_index].destroy_decoratives{area={{event.entity.selection_box.left_top.x-0.6, event.entity.selection_box.left_top.y-0.6}, {event.entity.selection_box.right_bottom.x+0.6, event.entity.selection_box.right_bottom.y+0.6}}}
     end
 end)
index d6ac9c7a1c712910852daec0afcb4122ff2d4954..694dd9ff0fe0fb6a1b8f05f12ef31026bd152ea5 100644 (file)
--- a/info.json
+++ b/info.json
@@ -1,10 +1,12 @@
 {
     "name": "RealisticDecorationCleanup",
-    "version": "2.0.0",
+    "version": "2.0.1",
     "title": "Realistic Decoration Cleanup",
     "author": "someone1337",
     "homepage": "https://git.somenet.org/factorio/RealisticDecorationCleanup.git",
     "description": "Remove decorations prior to placing entities or tiles. Normally you would not build a house/road and leave the bushes below it.",
     "factorio_version": "2.0",
-    "dependencies": ["base>=2.0.0"]
+    "dependencies": [
+        "base>=2.0.0"
+    ]
 }