forked from minetest-mods/unified_inventory
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 function stack_image_button(x, y, w, h, buttonname_prefix, item)
|
||||||
local name = item:get_name()
|
local name = item:get_name()
|
||||||
local count = item:get_count()
|
|
||||||
local wear = item:get_wear()
|
|
||||||
local description = item:get_meta():get_string("description")
|
local description = item:get_meta():get_string("description")
|
||||||
local show_is_group = false
|
local show_is_group = false
|
||||||
local displayitem = name.." "..count.." "..wear
|
local displayitem = item:to_string()
|
||||||
local selectitem = name
|
local selectitem = name
|
||||||
if name:sub(1, 6) == "group:" then
|
if name:sub(1, 6) == "group:" then
|
||||||
local group_name = name:sub(7)
|
local group_name = name:sub(7)
|
||||||
|
Loading…
Reference in New Issue
Block a user