diff options
author | Alexander Harkness <me@bearbin.net> | 2018-01-14 19:44:45 +0100 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-01-14 19:44:45 +0100 |
commit | ad22922393c7982b885840960222de64ff96ad36 (patch) | |
tree | a028b7459f3c865f7e8bd563ae476c578763a9b1 /src/Entities/Pawn.cpp | |
parent | Travis: Remove gdb (#4140) (diff) | |
download | cuberite-ad22922393c7982b885840960222de64ff96ad36.tar cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.gz cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.bz2 cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.lz cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.xz cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.zst cuberite-ad22922393c7982b885840960222de64ff96ad36.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Pawn.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp index b5769f430..27c04d4b8 100644 --- a/src/Entities/Pawn.cpp +++ b/src/Entities/Pawn.cpp @@ -156,7 +156,7 @@ bool cPawn::IsInvisible() const void cPawn::HandleAir(void) { - if (IsSubmerged() && HasEntityEffect(cEntityEffect::effWaterBreathing)) + if (IsHeadInWater() && HasEntityEffect(cEntityEffect::effWaterBreathing)) { // Prevent the oxygen from decreasing return; @@ -486,6 +486,3 @@ cEntityEffect * cPawn::GetEntityEffect(cEntityEffect::eType a_EffectType) auto itr = m_EntityEffects.find(a_EffectType); return (itr != m_EntityEffects.end()) ? itr->second.get() : nullptr; } - - - |