mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-18 16:10:39 +01:00
Add name of item moved to all inventories. Fixes https://github.com/minetest-mods/homedecor_modpack/issues/307
This commit is contained in:
parent
7b9533fea4
commit
5d0c6c3515
@ -80,13 +80,13 @@ function homedecor.handle_inventory(name, def, original_def)
|
|||||||
))
|
))
|
||||||
end
|
end
|
||||||
def.on_metadata_inventory_put = def.on_metadata_inventory_put or function(pos, listname, index, stack, player)
|
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(
|
minetest.log("action", S("%s moves %s to %s at %s"):format(
|
||||||
player:get_player_name(), name, minetest.pos_to_string(pos)
|
player:get_player_name(), stack:get_name(), name, minetest.pos_to_string(pos)
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
def.on_metadata_inventory_take = def.on_metadata_inventory_take or function(pos, listname, index, stack, player)
|
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(
|
minetest.log("action", S("%s takes %s from %s at %s"):format(
|
||||||
player:get_player_name(), name, minetest.pos_to_string(pos)
|
player:get_player_name(), stack:get_name(), name, minetest.pos_to_string(pos)
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user