mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
set client to not show hp if server doesn't support it
This commit is contained in:
parent
c638442e78
commit
983bf6677d
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ LocalPlayer::LocalPlayer():
|
||||||
m_sneak_node(32767,32767,32767),
|
m_sneak_node(32767,32767,32767),
|
||||||
m_sneak_node_exists(false)
|
m_sneak_node_exists(false)
|
||||||
{
|
{
|
||||||
|
// Initialize hp to 0, so that no hearts will be shown if server
|
||||||
|
// doesn't support health points
|
||||||
|
hp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
LocalPlayer::~LocalPlayer()
|
LocalPlayer::~LocalPlayer()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue