mirror of
https://github.com/minetest-mods/i3.git
synced 2025-07-03 17:10:23 +02:00
Add legacy_inventory setting (disabled by default)
This commit is contained in:
10
src/hud.lua
10
src/hud.lua
@ -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)
|
||||
|
Reference in New Issue
Block a user