From a8c8ef08901f9d1bbe81045bd12a47fe3a82e5ea Mon Sep 17 00:00:00 2001 From: Zefram Date: Fri, 13 Jun 2014 10:40:52 +0100 Subject: Correctly display multi-group ingredients Extend the representative-item logic to handle ingredients specified as the intersection of multiple groups. Also add mangling of item button content, because comma for a multi-group ingredient is getting formspec-escaped and then not de-escaped. --- register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'register.lua') diff --git a/register.lua b/register.lua index 131cbe2..aac5342 100644 --- a/register.lua +++ b/register.lua @@ -165,7 +165,7 @@ local function stack_image_button(x, y, w, h, buttonname_prefix, item) return string.format("item_image_button[%u,%u;%u,%u;%s;%s;%s]", x, y, w, h, minetest.formspec_escape(displayitem), - minetest.formspec_escape(buttonname_prefix..selectitem), + minetest.formspec_escape(buttonname_prefix..unified_inventory.mangle_for_formspec(selectitem)), label) end -- cgit v1.2.3