From 86ad3e7c6a37699f7f8297a387bf08af74e36629 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 22:10:20 -0400 Subject: Update all core mods --- digilines_inventory/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'digilines_inventory') diff --git a/digilines_inventory/init.lua b/digilines_inventory/init.lua index 89aaabc..a8e7ecf 100644 --- a/digilines_inventory/init.lua +++ b/digilines_inventory/init.lua @@ -127,7 +127,9 @@ minetest.register_node("digilines_inventory:chest", { minetest.log("action", player:get_player_name().." puts stuff into chest at "..minetest.pos_to_string(pos)) end, on_metadata_inventory_take = function(pos, listname, index, stack, player) - local inv = minetest.get_meta(pos):get_inventory() + local meta = minetest.get_meta(pos) + local channel = meta:get_string("channel") + local inv = meta:get_inventory() if inv:is_empty(listname) then sendMessage(pos, "empty", channel) end -- cgit v1.2.3