From f8ff3472fbffe195e184ed3001d29e62ea228f0e Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 20 Jan 2025 20:54:34 -0800 Subject: [PATCH] w2e --- changelog.txt | 5 ++++ control-util.lua | 57 ++++++++++++++++++++++++++++++++++++++++++++ control.lua | 3 +-- data-util.lua | 2 +- info.json | 2 +- locale/en/carbon.cfg | 3 +++ 6 files changed, 68 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 7d9dfd7..0e75a80 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.5.9 +Date: 2024-02-17 + Fixes: + - Fix possible soft lock on Warptorio 2 Expnasion +--------------------------------------------------------------------------------------------------- Version: 0.5.8 Date: 2023-12-24 Localization: diff --git a/control-util.lua b/control-util.lua index cd2b0f2..9000745 100644 --- a/control-util.lua +++ b/control-util.lua @@ -26,4 +26,61 @@ function util.force_enable_recipe(event, recipe_name) end end + +function util.warptorio2_expansion_helper() + if script.active_mods["warptorio2_expansion"] then + function check_container_for_items(container,items) + local has_all =true + for k=1,#items do + if container.get_item_count(items[k].name)