Fix crash when a node texture is a table

This commit is contained in:
HybridDog 2018-08-06 13:27:10 +02:00
parent 0112f1f9ec
commit 1d2e42eaab

@ -67,15 +67,15 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
local top = tiles[1] local top = tiles[1]
if type(top) == "table" then if type(top) == "table" then
top = top.item top = top.name
end end
local left = tiles[3] or top local left = tiles[3] or top
if type(left) == "table" then if type(left) == "table" then
left = left.item left = left.name
end end
local right = tiles[5] or left local right = tiles[5] or left
if type(right) == "table" then if type(right) == "table" then
right = right.item right = right.name
end end
image = minetest.inventorycube(top, left, right) image = minetest.inventorycube(top, left, right)