Recompute max_mining_drill_radius
This commit is contained in:
parent
bf398c7ff5
commit
44b4625518
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue