Fix noclip check on servers

master
luk3yx 2022-05-13 10:58:54 +12:00
parent a7d881cb10
commit b23c5b02ba
1 changed files with 1 additions and 1 deletions

View File

@ -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)