From daaf22b72681613c97a58610c7eb5c65c75aa444 Mon Sep 17 00:00:00 2001 From: David Skrundz Date: Mon, 4 Nov 2024 19:44:26 -0800 Subject: [PATCH] Fix new save crash --- changelog.txt | 5 +++++ control.lua | 2 ++ info.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index e7ec9f0..b73a4de 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.1 +Date: 04.11.2024 + Bugfixes: + - Prevent crash on new saves +--------------------------------------------------------------------------------------------------- Version: 2.0.0 Date: 20.10.2024 Major Features: diff --git a/control.lua b/control.lua index 9c2d1b4..c8dabe2 100644 --- a/control.lua +++ b/control.lua @@ -14,6 +14,8 @@ script.on_init(function() storage.active.mining_drills = {} -- [Tick:Entity] storage.passive = {} storage.passive.mining_drills = {} -- [Entity.unit_number:Entity] + + recompute_max_mining_drill_radius() end) script.on_load(function() diff --git a/info.json b/info.json index c2a98dd..f25f719 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "Teardown", - "version": "2.0.0", + "version": "2.0.1", "title": "Teardown", "description": "Automate the removal of depleted miners", "author": "David Skrundz",