diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-05 00:27:13 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-05 00:27:13 +0100 |
commit | ea2ce1595f51c141342991378c372529f26434c6 (patch) | |
tree | 47c69a342db56bc499f9d6bb4aec2aab7b8a76ea /src/Entities/Player.cpp | |
parent | Fixed a bunch of MSVS warnings (diff) | |
download | cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar.gz cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar.bz2 cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar.lz cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar.xz cuberite-ea2ce1595f51c141342991378c372529f26434c6.tar.zst cuberite-ea2ce1595f51c141342991378c372529f26434c6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 70c881091..c0466fa66 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1760,6 +1760,23 @@ void cPlayer::UseEquippedItem(void) +void cPlayer::TickBurning(cChunk & a_Chunk) +{ + // Don't burn in creative and stop burning in creative if necessary + if (!IsGameModeCreative()) + { + super::TickBurning(a_Chunk); + } + else if (IsOnFire()) + { + m_TicksLeftBurning = 0; + OnFinishedBurning(); + } +} + + + + void cPlayer::HandleFood(void) { |