From a44de6230bcde79b78749bc6024a5ee8614bc6c0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 8 Jul 2021 15:34:50 +0200 Subject: [PATCH 1/3] Fix massive hud_change spam (hide/unhide) --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index da9d1f3..8a4e1fc 100644 --- a/init.lua +++ b/init.lua @@ -404,6 +404,7 @@ function hb.hide_hudbar(player, identifier) local name = player:get_player_name() local hudtable = hb.get_hudtable(identifier) if hudtable == nil then return false end + if hudtable.hudstate[name].hidden == true then return true end if hb.settings.bar_type == "progress_bar" then if hudtable.hudids[name].icon ~= nil then player:hud_change(hudtable.hudids[name].icon, "scale", {x=0,y=0}) @@ -422,6 +423,7 @@ function hb.unhide_hudbar(player, identifier) local name = player:get_player_name() local hudtable = hb.get_hudtable(identifier) if hudtable == nil then return false end + if hudtable.hudstate[name].hidden == false then return true end local value = hudtable.hudstate[name].value local max = hudtable.hudstate[name].max if hb.settings.bar_type == "progress_bar" then From 906f7876f707530afd0c719c49a289c381a864dc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 8 Jul 2021 15:42:11 +0200 Subject: [PATCH 2/3] Version 2.3.2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 45f3b11..8e17eda 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ this mod will place them accordingly. position should be displayed correctly on every screen size. ## Current version -The current version is 2.3.1. +The current version is 2.3.2. It works for Minetest 5.3.0. This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer From 812b2538ff0198c5c7b3707a80b3ebfa6b34f460 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 8 Jul 2021 15:43:14 +0200 Subject: [PATCH 3/3] Version 2.3.3 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e17eda..136eab6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ this mod will place them accordingly. position should be displayed correctly on every screen size. ## Current version -The current version is 2.3.2. +The current version is 2.3.3. It works for Minetest 5.3.0. This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer