Atualização lib tror
parent
9177ee6b72
commit
90fd477217
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue