updates
parent
5c7c31fd6e
commit
1223c75e8c
|
@ -29,10 +29,12 @@ end
|
|||
|
||||
minetest.register_allow_player_inventory_action(function(player, action, inventory, inventory_info)
|
||||
local stack
|
||||
if inventory_info.to_list == "cloths" then
|
||||
minetest.chat_send_all("1")
|
||||
if action == "move" and inventory_info.to_list == "cloths" then --for moving items from player inventory list 'main' to 'cloths'
|
||||
if inventory_info.from_list == inventory_info.to_list then --for moving inside the 'cloths' inventory
|
||||
return 1
|
||||
end
|
||||
stack = inventory:get_stack(inventory_info.from_list, inventory_info.from_index)
|
||||
elseif action == "put" and inventory_info.listname == "cloths" then
|
||||
elseif action == "put" and inventory_info.listname == "cloths" then --for moving from node inventory 'closet' to player inventory 'cloths'
|
||||
stack = inventory_info.stack
|
||||
else
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue