mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2025-06-29 15:00:27 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7993feac07 | |||
b19b5f090a | |||
9a8a3f0f8c | |||
2eb2df946b |
@ -11,7 +11,7 @@ this mod will place them accordingly.
|
|||||||
position should be displayed correctly on every screen size.
|
position should be displayed correctly on every screen size.
|
||||||
|
|
||||||
## Current version
|
## Current version
|
||||||
The current version is 2.2.0.
|
The current version is 2.2.2.
|
||||||
|
|
||||||
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
||||||
standard.
|
standard.
|
||||||
|
3
init.lua
3
init.lua
@ -316,6 +316,9 @@ function hb.change_hudbar(player, identifier, new_value, new_max_value, new_icon
|
|||||||
|
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local hudtable = hb.get_hudtable(identifier)
|
local hudtable = hb.get_hudtable(identifier)
|
||||||
|
if not hudtable.hudstate[name] then
|
||||||
|
return false
|
||||||
|
end
|
||||||
local value_changed, max_changed = false, false
|
local value_changed, max_changed = false, false
|
||||||
|
|
||||||
if new_value ~= nil then
|
if new_value ~= nil then
|
||||||
|
Reference in New Issue
Block a user