Fix noclip check on servers
This commit is contained in:
parent
a7d881cb10
commit
b23c5b02ba
@ -176,7 +176,7 @@ void PlayerSAO::step(float dtime, bool send_recommended)
|
||||
MapNode n = m_env->getMap().getNode(p);
|
||||
const ContentFeatures &c = m_env->getGameDef()->ndef()->get(n);
|
||||
// If node generates drown
|
||||
bool noclip = m_privs.count("noclip") && g_settings->getBool("noclip");
|
||||
const bool noclip = m_privs.count("noclip") && (!m_is_singleplayer || g_settings->getBool("noclip"));
|
||||
int drowning = (c.walkable && c.drawtype != NDT_NODEBOX) ? 1 : c.drowning;
|
||||
if (drowning > 0 && m_hp > 0 && !noclip) {
|
||||
if (m_breath > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user