mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Fix crash when a node texture is a table
This commit is contained in:
parent
0112f1f9ec
commit
1d2e42eaab
6
init.lua
6
init.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user