Recompute max_mining_drill_radius

This commit is contained in:
David Skrundz 2024-09-18 20:54:18 -06:00
parent bf398c7ff5
commit 44b4625518
Signed by: DavidSkrundz
GPG Key ID: D7006AAB6214A600
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 0.0.1
Version: 1.0.1
Date: 18.09.2024
Bugfixes:
- Recompute max_mining_drill_radius if the mod configuration changes
---------------------------------------------------------------------------------------------------
Version: 1.0.0
Date: 15.09.2024
Features:
- Initial release

View File

@ -14,8 +14,6 @@ script.on_init(function()
global.active.mining_drills = {} -- [Tick:Entity]
global.passive = {}
global.passive.mining_drills = {} -- [Entity:true]
recompute_max_mining_drill_radius()
end)
script.on_load(function()
@ -27,4 +25,8 @@ script.on_load(function()
end
end)
script.on_configuration_changed(function(data)
recompute_max_mining_drill_radius()
end)
script.on_event(defines.events.on_resource_depleted, on_resource_depleted)

View File

@ -1,6 +1,6 @@
{
"name": "Teardown",
"version": "1.0.0",
"version": "1.0.1",
"title": "Teardown",
"description": "Automate the removal of depleted miners",
"author": "David Skrundz",