From 6f201c5e9370d72d8a10d37e2773f4e27f577a3b Mon Sep 17 00:00:00 2001 From: Brevven Date: Thu, 7 Jan 2021 12:30:12 -0800 Subject: [PATCH] fix deadlock beltbox issue --- changelog.txt | 5 +++++ info.json | 2 +- titanium-recipe-final-se.lua | 8 +++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 7a32f9a..cf30c71 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.9.8 +Date: 2021-01-07 + Fixes: + - Bugfix for space exploration deadlock beltbox edge cases +--------------------------------------------------------------------------------------------------- Version: 0.9.7 Date: 2020-12-29 Fixes: diff --git a/info.json b/info.json index 5fd2168..d32ccab 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "0.9.7", + "version": "0.9.8", "factorio_version": "1.1", "title": "Titanium", "author": "Brevven", diff --git a/titanium-recipe-final-se.lua b/titanium-recipe-final-se.lua index b744cb1..18a53d8 100644 --- a/titanium-recipe-final-se.lua +++ b/titanium-recipe-final-se.lua @@ -48,8 +48,10 @@ if data.raw.recipe["se-space-pipe"] then util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-loader"]) util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-loader"].normal) util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-loader"].expensive) - util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"]) - util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"].normal) - util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"].expensive) + if data.raw.recipe["se-space-transport-belt-beltbox"] then + util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"]) + util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"].normal) + util.steel_to_titanium(data.raw.recipe["se-space-transport-belt-beltbox"].expensive) + end end end