diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-11 19:50:14 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-09-11 19:56:03 +0200 |
commit | e9321bc715b5298553b114666ccc3418591fbfdc (patch) | |
tree | 463c0da24b3078276266462c24ff7ff8a2392cfe /source/Entities | |
parent | moved reflection code to PlayerYawToMetadata (diff) | |
download | cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.gz cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.bz2 cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.lz cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.xz cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.zst cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Entities/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp index 1f4f392ef..bf96a6eaa 100644 --- a/source/Entities/Player.cpp +++ b/source/Entities/Player.cpp @@ -613,7 +613,7 @@ void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI) { if (a_TDI.DamageType != dtInVoid) { - if (m_GameMode == eGameMode_Creative) + if (IsGameModeCreative()) { // No damage / health in creative mode return; |