mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Simplify inventorycube code (again)
This commit is contained in:
parent
1e5718cbac
commit
608b5dfe6e
2
init.lua
2
init.lua
@ -64,7 +64,7 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
|
|||||||
if not right then right = left end
|
if not right then right = left end
|
||||||
if (type(right) == "table") then right = right.item end
|
if (type(right) == "table") then right = right.item end
|
||||||
|
|
||||||
image = "[inventorycube{"..top.."{"..left.."{"..right
|
image = minetest.inventorycube(top, left, right)
|
||||||
else
|
else
|
||||||
image = minetest.registered_items[item.name].inventory_image
|
image = minetest.registered_items[item.name].inventory_image
|
||||||
if not image then image = minetest.registered_items[item.name].tiles[1] end
|
if not image then image = minetest.registered_items[item.name].tiles[1] end
|
||||||
|
Loading…
Reference in New Issue
Block a user