mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-12 11:10:30 +01:00
Fix crash in progressive mode
This commit is contained in:
parent
e1c0f106cc
commit
4736b551a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user