From 7696546d4710ab28e55abd7cde05c1dbcd39cf44 Mon Sep 17 00:00:00 2001 From: fgrosswig Date: Mon, 6 Jan 2020 21:49:05 +0100 Subject: [PATCH 1/2] Fix steel strut overlay texture name (#526) --- extranodes/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extranodes/init.lua b/extranodes/init.lua index e554b631..42c7d679 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -142,7 +142,7 @@ local iclipfence_def = { local sclip_tex = { "technic_insulator_clip.png", - { name = "strut.png^steel_strut_overlay.png", color = "white" }, + { name = "strut.png^technic_steel_strut_overlay.png", color = "white" }, { name = "strut.png", color = "white" } } From e90b28895cc28daf1a2e4fb772bd191400cf9e62 Mon Sep 17 00:00:00 2001 From: fgrosswig Date: Mon, 6 Jan 2020 21:50:15 +0100 Subject: [PATCH 2/2] battery_box.lua: Make "srcstack" local (#525) Fixes warning: Assignment to undeclared global "srcstack" inside a function at battery_box.lua:454 --- technic/machines/register/battery_box.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 4f1f76e1..bf4d96a5 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -452,7 +452,7 @@ function technic.discharge_tools(meta, batt_charge, charge_step, max_charge) if inv:is_empty("dst") then return batt_charge, false end - srcstack = inv:get_stack("dst", 1) + local srcstack = inv:get_stack("dst", 1) local toolname = srcstack:get_name() if technic.power_tools[toolname] == nil then return batt_charge, false