diff options
author | Alexander Harkness <me@bearbin.net> | 2014-10-18 17:12:12 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2014-10-18 17:12:12 +0200 |
commit | f280c36f9d2e8ca0aabf5395d50f2982d39806a5 (patch) | |
tree | ef605c8332274a7e9bb6f86c85ea5ebde777e07b /src/BlockEntities/FurnaceEntity.cpp | |
parent | Nullptr? (diff) | |
download | cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar.gz cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar.bz2 cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar.lz cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar.xz cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.tar.zst cuberite-f280c36f9d2e8ca0aabf5395d50f2982d39806a5.zip |
Diffstat (limited to 'src/BlockEntities/FurnaceEntity.cpp')
-rw-r--r-- | src/BlockEntities/FurnaceEntity.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/BlockEntities/FurnaceEntity.cpp b/src/BlockEntities/FurnaceEntity.cpp index 38c251d2c..898d348de 100644 --- a/src/BlockEntities/FurnaceEntity.cpp +++ b/src/BlockEntities/FurnaceEntity.cpp @@ -96,9 +96,8 @@ bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk) if (m_FuelBurnTime <= 0) { - // Cooked time decreases twice as fast when ran out of fuel - m_TimeCooked -= 2; - m_TimeCooked = std::max(m_TimeCooked, 0); + // If a furnace is out of fuel, the progress bar reverses at twice the speed of cooking. + m_TimeCooked = std::max((m_TimeCooked - 2), 0); // Reset progressbars, block type, and bail out a_Chunk.FastSetBlock(GetRelX(), m_PosY, GetRelZ(), E_BLOCK_FURNACE, m_BlockMeta); |