mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-08-20 13:14:09 +02: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]
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user