Fix crash in progressive mode

This commit is contained in:
Jean-Patrick Guerrero 2022-06-09 12:33:56 +02:00
parent e1c0f106cc
commit 4736b551a8

View File

@ -89,6 +89,10 @@ local item_lists = {"main", "craft", "craftpreview"}
local function get_inv_items(player) local function get_inv_items(player)
local inv = player:get_inventory() local inv = player:get_inventory()
if not inv then
return {}
end
local stacks = {} local stacks = {}
for i = 1, #item_lists do for i = 1, #item_lists do