mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 03:10:39 +01:00
Fix potential crash
This commit is contained in:
parent
893959b5d4
commit
cbf6256593
2
init.lua
2
init.lua
@ -1706,7 +1706,7 @@ local function get_items_fs(fs, data, full_height)
|
|||||||
data.items = new
|
data.items = new
|
||||||
end
|
end
|
||||||
|
|
||||||
local items = data.alt_items or data.items
|
local items = data.alt_items or data.items or {}
|
||||||
local rows, lines = 8, 12
|
local rows, lines = 8, 12
|
||||||
local ipp = rows * lines
|
local ipp = rows * lines
|
||||||
local size = 0.85
|
local size = 0.85
|
||||||
|
Loading…
Reference in New Issue
Block a user