diff --git a/changelog.txt b/changelog.txt index 801b57a..372d9ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.4.21 +Date: 2023-02-03 + Features: + - Compatibility with Warptorio2Expansion, can now repair broken lab to unlock research. + No copper cable or circuits required. +--------------------------------------------------------------------------------------------------- Version: 0.4.20 Date: 2023-01-17 Features: diff --git a/control.lua b/control.lua index 838f9aa..de60321 100644 --- a/control.lua +++ b/control.lua @@ -30,3 +30,39 @@ script.on_init( end ) +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)