mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-11-19 22:03:43 +01:00
Craft guide: Add support for colored items (#213)
This commit is contained in:
parent
fc562ecaa0
commit
574de91971
@ -207,11 +207,9 @@ ui.register_page("craft", {
|
||||
|
||||
local function stack_image_button(x, y, w, h, buttonname_prefix, item)
|
||||
local name = item:get_name()
|
||||
local count = item:get_count()
|
||||
local wear = item:get_wear()
|
||||
local description = item:get_meta():get_string("description")
|
||||
local show_is_group = false
|
||||
local displayitem = name.." "..count.." "..wear
|
||||
local displayitem = item:to_string()
|
||||
local selectitem = name
|
||||
if name:sub(1, 6) == "group:" then
|
||||
local group_name = name:sub(7)
|
||||
|
Loading…
Reference in New Issue
Block a user