diff options
Diffstat (limited to 'inbox')
-rw-r--r-- | inbox/init.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/inbox/init.lua b/inbox/init.lua index 6189784..d188f0d 100644 --- a/inbox/init.lua +++ b/inbox/init.lua @@ -64,7 +64,7 @@ minetest.register_node("inbox:empty", { local name = player and player:get_player_name() local owner = meta:get_string("owner") local inv = meta:get_inventory() - return player == owner and inv:is_empty("main") + return name == owner and inv:is_empty("main") end, on_metadata_inventory_put = function(pos, listname, index, stack, player) local meta = minetest.get_meta(pos) @@ -95,7 +95,8 @@ function inbox.get_inbox_formspec(pos) local formspec = "size[8,9]".. "list[nodemeta:".. spos .. ";main;0,0;8,4;]".. - "list[current_player;main;0,5;8,4;]" + "list[current_player;main;0,5;8,4;]" .. + "listring[]" return formspec end @@ -104,6 +105,7 @@ function inbox.get_inbox_insert_formspec(pos) local formspec = "size[8,9]".. "list[nodemeta:".. spos .. ";drop;3.5,2;1,1;]".. - "list[current_player;main;0,5;8,4;]" + "list[current_player;main;0,5;8,4;]".. + "listring[]" return formspec end |