diff options
author | Zefram <zefram@fysh.org> | 2014-06-13 10:40:52 +0100 |
---|---|---|
committer | Diego Martinez <kaeza@users.sf.net> | 2014-06-13 09:28:37 -0300 |
commit | a8c8ef08901f9d1bbe81045bd12a47fe3a82e5ea (patch) | |
tree | ef87b68353f1f81e5314008a9899cc8828a3454f /register.lua | |
parent | dbf98cb694578223c0f3bb1016e054ce636f2276 (diff) |
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.
Diffstat (limited to 'register.lua')
-rw-r--r-- | register.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |