diff options
author | Alexander Harkness <me@bearbin.net> | 2017-09-07 10:59:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-07 10:59:08 +0200 |
commit | e33eb529addf7ca8870a02725e74d7120912eb6e (patch) | |
tree | 351db4a5555f2a8bf3b8ea905c90edfbbcf2f4d5 /src/Entities/Player.cpp | |
parent | Updated APIDoc (#3985) (diff) | |
download | cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar.gz cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar.bz2 cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar.lz cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar.xz cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.tar.zst cuberite-e33eb529addf7ca8870a02725e74d7120912eb6e.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index fb2274cad..f9804569f 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2352,23 +2352,6 @@ void cPlayer::UseEquippedItem(int a_Amount) -void cPlayer::TickBurning(cChunk & a_Chunk) -{ - // Don't burn in creative or spectator and stop burning in creative if necessary - if (!IsGameModeCreative() && !IsGameModeSpectator()) - { - super::TickBurning(a_Chunk); - } - else if (IsOnFire()) - { - m_TicksLeftBurning = 0; - OnFinishedBurning(); - } -} - - - - void cPlayer::HandleFood(void) { @@ -3018,4 +3001,3 @@ float cPlayer::GetPlayerRelativeBlockHardness(BLOCKTYPE a_Block) // LOGD("blockHardness: %f, digSpeed: %f, canHarvestBlockDivisor: %f\n", blockHardness, digSpeed, canHarvestBlockDivisor); return (blockHardness < 0) ? 0 : ((digSpeed / blockHardness) / canHarvestBlockDivisor); } - |