Skip to content

Commit

Permalink
Fix crash when a node texture is a table
Browse files Browse the repository at this point in the history
  • Loading branch information
HybridDog committed Aug 6, 2018
1 parent 09e0329 commit b7031d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Expand Up @@ -67,15 +67,15 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then

local top = tiles[1]
if type(top) == "table" then
top = top.item
top = top.name
end
local left = tiles[3] or top
if type(left) == "table" then
left = left.item
left = left.name
end
local right = tiles[5] or left
if type(right) == "table" then
right = right.item
right = right.name
end

image = minetest.inventorycube(top, left, right)
Expand Down

0 comments on commit b7031d3

Please sign in to comment.