From 4736b551a8459f95e7e2fbee5dd6145bd9a6e5d6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 9 Jun 2022 12:33:56 +0200 Subject: [PATCH] Fix crash in progressive mode --- src/progressive.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/progressive.lua b/src/progressive.lua index e3a5141..184bf20 100644 --- a/src/progressive.lua +++ b/src/progressive.lua @@ -89,6 +89,10 @@ local item_lists = {"main", "craft", "craftpreview"} local function get_inv_items(player) local inv = player:get_inventory() + if not inv then + return {} + end + local stacks = {} for i = 1, #item_lists do