Gauges: fix invisibility
parent
dc802d5481
commit
fdd98e772a
|
@ -45,11 +45,13 @@ minetest.register_entity("gauges:hp_bar", {
|
|||
end
|
||||
|
||||
-- Hide gauge if player is invisible
|
||||
if check_visibility(player) and not self.hide then
|
||||
gauge:set_properties({
|
||||
textures = {"blank.png"}
|
||||
})
|
||||
self.hide = true
|
||||
if check_visibility(player) then
|
||||
if not self.hide then
|
||||
gauge:set_properties({
|
||||
textures = {"blank.png"}
|
||||
})
|
||||
self.hide = true
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue