From 5410ea74f28de489f7cea15dc5c6dadf16f4d2f3 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 2 May 2020 11:37:57 +0200 Subject: [PATCH] Fix wrong inventory_image and wield_image types --- tube_registration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tube_registration.lua b/tube_registration.lua index 17965d8..c530cbf 100644 --- a/tube_registration.lua +++ b/tube_registration.lua @@ -58,7 +58,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1} local tubedesc = string.format("%s %s", desc, dump(connects)) - local iimg = plain[1] + local iimg = type(plain[1]) == "table" and plain[1].name or plain[1] local wscale = {x = 1, y = 1, z = 1} if #connects == 0 then