Atualização lib tror

master
BrunoMine 2018-08-09 11:13:55 -03:00
parent 9177ee6b72
commit 90fd477217
1 changed files with 8 additions and 6 deletions

View File

@ -134,6 +134,7 @@ tror.trocar_plus = function(player, item_rem, item_add)
-- Transfere todos os itens ao jogador (e dropa os que nao couberem no inventario)
local dropou = false
if item_add ~= nil then
for _,item in ipairs(item_add) do
if inv:room_for_item("main", item) then
inv:add_item("main", item)
@ -142,6 +143,7 @@ tror.trocar_plus = function(player, item_rem, item_add)
minetest.env:add_item({x = pos.x + math.random() * 2 - 1, y = pos.y+1, z = pos.z + math.random() * 2 - 1}, item)
end
end
end
return true