Add legacy_inventory setting (disabled by default)

This commit is contained in:
Jean-Patrick Guerrero
2021-12-06 15:16:19 +01:00
parent 382ff397a5
commit cacb9a29fd
5 changed files with 18 additions and 9 deletions

View File

@ -34,10 +34,12 @@ local function init_hud(player)
},
}
core.after(0, function()
player:hud_set_hotbar_itemcount(i3.HOTBAR_LEN)
player:hud_set_hotbar_image"i3_hotbar.png"
end)
if not i3.legacy_inventory then
core.after(0, function()
player:hud_set_hotbar_itemcount(i3.HOTBAR_LEN)
player:hud_set_hotbar_image"i3_hotbar.png"
end)
end
end
local function show_hud(player, data)