Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.4.4
Date: 2024-02-24
Features:
- Use dot (".") as surface name to select current
---------------------------------------------------------------------------------------------------
Version: 0.4.3
Date: 2020-12-27
Changes:
Expand Down
3 changes: 3 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ script.on_event(defines.events.on_gui_click, function(event)
if not (player and player.valid) then return end
if player.admin then
local target_surface = settings.global["DeleteEmptyChunks_surface"].value
if target_surface == "." then
target_surface = player.surface.name
end
local radius = settings.global["DeleteEmptyChunks_radius"].value
local keep_paving = settings.global["DeleteEmptyChunks_paving"].value
doit(player.name, target_surface, radius, keep_paving)
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "DeleteEmptyChunks",
"description": "Delete chunks which contain no player entities, configurable chunk radius & paving detection",
"version": "0.4.3",
"version": "0.4.4",
"title": "Delete Empty Chunks",
"author": "Strath",
"factorio_version": "1.1"
Expand Down
2 changes: 1 addition & 1 deletion locale/en/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ DeleteEmptyChunks_radius=Keep Radius
DeleteEmptyChunks_paving=Detect Paving

[mod-setting-description]
DeleteEmptyChunks_surface=Name of surface to process (Default is "nauvis")
DeleteEmptyChunks_surface=Name of surface to process (Default is "nauvis"). Use "." to select current you are on
DeleteEmptyChunks_radius=Radius of adjacent chucks to keep
DeleteEmptyChunks_paving=Also keep chunks containing concrete, stone paths, hazard concrete, etc