Decrease time before reshowing HUD

This shouldn't make any difference on normal MT servers but if the 
server step is low enough it should prevent stuttering.
This commit is contained in:
luk3yx 2021-08-29 19:42:32 +12:00
parent 40101f3a68
commit d4a3acba33
1 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ function hud_fs.show_hud(player, formname, formspec)
-- Block future HUD modifications if the new HUD isn't empty
if new_elems[1] then
data[3] = true
minetest.after(0.05, reshow_hud, name, formname, data)
minetest.after(0.01, reshow_hud, name, formname, data)
end
if DEBUG then
@ -469,7 +469,7 @@ function hud_fs.show_hud(player, formname, formspec)
-- Only block future HUD modifications if any elements have been added
if proto_ver < 40 and added > 0 then
data[3] = true
minetest.after(0.05, reshow_hud, name, formname, data)
minetest.after(0.01, reshow_hud, name, formname, data)
end
if DEBUG then