summaryrefslogtreecommitdiff
path: root/homedecor/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'homedecor/handlers')
-rw-r--r--homedecor/handlers/inventory.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/homedecor/handlers/inventory.lua b/homedecor/handlers/inventory.lua
index 51ac70f..44b6945 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