From 8cfaaed308e632430e66b25aa87ac4b09303f2f4 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 2 Oct 2020 01:46:32 +0200 Subject: [PATCH] added listring to shelf --- nodes_furniture.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodes_furniture.lua b/nodes_furniture.lua index 65e229d..424764c 100644 --- a/nodes_furniture.lua +++ b/nodes_furniture.lua @@ -264,10 +264,13 @@ minetest.register_node("cottages:shelf", { local meta = minetest.get_meta(pos); + local spos = pos.x .. "," .. pos.y .. "," .. pos.z meta:set_string("formspec", "size[8,8]".. "list[current_name;main;0,0;8,3;]".. - "list[current_player;main;0,4;8,4;]") + "list[current_player;main;0,4;8,4;]".. + "listring[nodemeta:" .. spos .. ";main]" .. + "listring[current_player;main]") meta:set_string("infotext", S("open storage shelf")) local inv = meta:get_inventory(); inv:set_size("main", 24);