From e69e6f53702f3e412f6fa02a0891f9cbdd9ddac5 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 5 Feb 2021 20:12:12 +0100 Subject: [PATCH] Add TA4 recycle machine --- basic_machines/consumer.lua | 4 ++-- init.lua | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/basic_machines/consumer.lua b/basic_machines/consumer.lua index ff32904..0953017 100644 --- a/basic_machines/consumer.lua +++ b/basic_machines/consumer.lua @@ -77,10 +77,10 @@ local function prepare_tiles(tiles, stage, power_png) local tbl = {} for _,item in ipairs(tiles) do if type(item) == "string" then - tbl[#tbl+1] = item:gsub("#", stage):gsub("{power}", power_png) + tbl[#tbl+1] = item:gsub("#", stage):gsub("{power}", power_png):gsub("@@", '#') else local temp = table.copy(item) - temp.image = temp.image:gsub("#", stage):gsub("{power}", power_png) + temp.image = temp.image:gsub("#", stage):gsub("{power}", power_png):gsub("@@", '#') tbl[#tbl+1] = temp end end diff --git a/init.lua b/init.lua index 8a97ef1..42cbdb5 100644 --- a/init.lua +++ b/init.lua @@ -160,6 +160,7 @@ dofile(MP.."/basic_machines/quarry.lua") dofile(MP.."/basic_machines/ta4_chest.lua") dofile(MP.."/basic_machines/ta4_injector.lua") dofile(MP.."/basic_machines/itemsource.lua") +dofile(MP.."/basic_machines/recycler.lua") -- Liquids II dofile(MP.."/liquids/tank.lua")