Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Aug 15, 2019
1 parent b34ea0c commit b32feac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions global_storage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ minetest.register_on_joinplayer(function(player)
inv:set_size("mailbox", inv_size)
local list = get_stored_inv(player:get_player_name())
if list then
for id, stack in ipairs(list) do
list[id] = ItemStack(stack)
for id = 1, inv_size do
list[id] = ItemStack(list[id])
end
inv:set_list("mailbox", list)
end
Expand Down

0 comments on commit b32feac

Please sign in to comment.