From 90425fde95d410ccd39479665ec39a03c9780328 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Mon, 23 May 2022 02:28:21 +1000 Subject: [PATCH] fix broken shift-clicking in wielder formspec fixes #34 --- wielder.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wielder.lua b/wielder.lua index 8b66df5..9aac1a2 100644 --- a/wielder.lua +++ b/wielder.lua @@ -23,9 +23,9 @@ local function set_wielder_formspec(data, meta) "item_image[0.5,0.5;1,1;"..data.name_base.."_off]".. "label[1.5,1;"..minetest.formspec_escape(data.description).."]".. list_background .. - "list[current_name;"..minetest.formspec_escape(data.wield_inv_name)..";"..((10-data.wield_inv_width)*0.5)..",1;"..data.wield_inv_width..","..data.wield_inv_height..";]".. + "list[context;"..minetest.formspec_escape(data.wield_inv_name)..";"..((10-data.wield_inv_width)*0.5)..",1;"..data.wield_inv_width..","..data.wield_inv_height..";]".. pipeworks.fs_helpers.get_inv((2+data.wield_inv_height)) .. - "listring[context;main]" .. + "listring[context;"..minetest.formspec_escape(data.wield_inv_name).."]" .. "listring[current_player;main]" ) meta:set_string("infotext", data.description)