diff --git a/changelog.txt b/changelog.txt index e7c3fd4..5d26bef 100755 --- a/changelog.txt +++ b/changelog.txt @@ -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: diff --git a/control.lua b/control.lua index 153bb3c..826ab00 100755 --- a/control.lua +++ b/control.lua @@ -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) diff --git a/info.json b/info.json index 26dbec0..7d96861 100755 --- a/info.json +++ b/info.json @@ -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" diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index ea696e3..e9ffb28 100755 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -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