Fix wrong inventory_image and wield_image types

This commit is contained in:
SmallJoker 2020-05-02 11:37:57 +02:00 committed by VanessaE
parent 4602290bc5
commit 5410ea74f2

@ -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