mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2025-07-14 14:20:29 +02:00
Compare commits
4 Commits
2.2.2
...
c4ddef312e
Author | SHA1 | Date | |
---|---|---|---|
c4ddef312e | |||
7f6ed309b3 | |||
7cd5940c68 | |||
67ca481f7c |
@ -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.2.2.
|
||||
The current version is 2.2.0.
|
||||
|
||||
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
||||
standard.
|
||||
|
5
init.lua
5
init.lua
@ -316,9 +316,6 @@ function hb.change_hudbar(player, identifier, new_value, new_max_value, new_icon
|
||||
|
||||
local name = player:get_player_name()
|
||||
local hudtable = hb.get_hudtable(identifier)
|
||||
if not hudtable.hudstate[name] then
|
||||
return false
|
||||
end
|
||||
local value_changed, max_changed = false, false
|
||||
|
||||
if new_value ~= nil then
|
||||
@ -570,3 +567,5 @@ minetest.register_globalstep(function(dtime)
|
||||
end
|
||||
if timer > 4 then timer = 0 end
|
||||
end)
|
||||
|
||||
minetest.log("action", "[hudbars] loaded.")
|
||||
|
Reference in New Issue
Block a user