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)