From e2a9fb5002b81954766ef80b10d41d96829efbf6 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 16 Feb 2024 22:56:25 -0800 Subject: [PATCH] up --- control-util.lua | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ data-util.lua | 2 +- 2 files changed, 58 insertions(+), 1 deletion(-) 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)