forked from minetest-mods/digilines
commit
a121bc0b12
@ -127,6 +127,10 @@ minetest.register_node("digilines_inventory:chest", {
|
|||||||
minetest.log("action", player:get_player_name().." puts stuff into chest at "..minetest.pos_to_string(pos))
|
minetest.log("action", player:get_player_name().." puts stuff into chest at "..minetest.pos_to_string(pos))
|
||||||
end,
|
end,
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
|
local inv = minetest.get_meta(pos):get_inventory()
|
||||||
|
if inv:is_empty(listname) then
|
||||||
|
sendMessage(pos, "empty", channel)
|
||||||
|
end
|
||||||
sendMessage(pos,"utake "..maybeString(stack))
|
sendMessage(pos,"utake "..maybeString(stack))
|
||||||
minetest.log("action", player:get_player_name().." takes stuff from chest at "..minetest.pos_to_string(pos))
|
minetest.log("action", player:get_player_name().." takes stuff from chest at "..minetest.pos_to_string(pos))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user