From 5d0c6c35153dc695e1be816ea4f2f1d3711f5d1a Mon Sep 17 00:00:00 2001 From: Amaz Date: Thu, 5 May 2016 09:18:12 +0100 Subject: [PATCH] Add name of item moved to all inventories. Fixes https://github.com/minetest-mods/homedecor_modpack/issues/307 --- homedecor/handlers/inventory.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homedecor/handlers/inventory.lua b/homedecor/handlers/inventory.lua index 51ac70f5..44b6945d 100644 --- a/homedecor/handlers/inventory.lua +++ b/homedecor/handlers/inventory.lua @@ -80,13 +80,13 @@ function homedecor.handle_inventory(name, def, original_def) )) end def.on_metadata_inventory_put = def.on_metadata_inventory_put or function(pos, listname, index, stack, player) - minetest.log("action", S("%s moves stuff to %s at %s"):format( - player:get_player_name(), name, minetest.pos_to_string(pos) + minetest.log("action", S("%s moves %s to %s at %s"):format( + player:get_player_name(), stack:get_name(), name, minetest.pos_to_string(pos) )) end def.on_metadata_inventory_take = def.on_metadata_inventory_take or function(pos, listname, index, stack, player) - minetest.log("action", S("%s takes stuff from %s at %s"):format( - player:get_player_name(), name, minetest.pos_to_string(pos) + minetest.log("action", S("%s takes %s from %s at %s"):format( + player:get_player_name(), stack:get_name(), name, minetest.pos_to_string(pos) )) end