forked from minetest-mods/craftguide
Change la barre de progression pendant le chargement du mod
Cette dernière n'était pas bien supportée par tous les terminaux.
This commit is contained in:
parent
1745cc0ba3
commit
0463712cbb
4
init.lua
4
init.lua
|
@ -1415,7 +1415,7 @@ local function get_init_items()
|
|||
last_str = str
|
||||
end
|
||||
|
||||
local full_char, empty_char = "▰", "▱"
|
||||
local full_char, empty_char = "o", "."
|
||||
|
||||
for name, def in pairs(reg_items) do
|
||||
ic = ic + 1
|
||||
|
@ -1425,7 +1425,7 @@ local function get_init_items()
|
|||
bar = bar .. (i <= percent / (100 / len) and full_char or empty_char)
|
||||
end
|
||||
|
||||
iop(fmt("[craftguide] Caching data %s %u%%\r", bar, percent))
|
||||
iop(fmt("[craftguide] Caching data %s %u%%\n", bar, percent))
|
||||
|
||||
if show_item(def) then
|
||||
if not fuel_cache[name] then
|
||||
|
|
Loading…
Reference in New Issue
Block a user