Fix swapping class items into other invs (#670)

* Fix bug with team/loot chest swapping
* Fix furnace swapping
This commit is contained in:
LoneWolfHT 2020-07-21 12:18:47 -07:00 committed by GitHub
parent cb51d78a27
commit b24d1b3097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 4 deletions

View file

@ -219,7 +219,7 @@ for _, chest_color in pairs(colors) do
if not ctf_map.is_item_allowed_in_team_chest(listname, swapped_item, player) then
chestinv: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() ..