From d4a3acba3325405c6183d1e2663ab24ec87a51ab Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sun, 29 Aug 2021 19:42:32 +1200 Subject: [PATCH] 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. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 5ec1e9f..7994e78 100644 --- a/init.lua +++ b/init.lua @@ -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