Fix swapping class items into other invs (#670)
* Fix bug with team/loot chest swapping * Fix furnace swapping
This commit is contained in:
parent
cb51d78a27
commit
b24d1b3097
3 changed files with 20 additions and 4 deletions
|
@ -80,7 +80,7 @@ minetest.register_node("tsm_chests:chest", {
|
|||
|
||||
if swapped_item:get_name() ~= "" then
|
||||
inv:remove_item(listname, swapped_item)
|
||||
player:get_inventory():add_item(listname, swapped_item)
|
||||
player:get_inventory():add_item("main", swapped_item)
|
||||
end
|
||||
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue