diff options
author | Mattes D <github@xoft.cz> | 2014-10-21 22:00:31 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-21 22:00:31 +0200 |
commit | 881bc66233a4937bdbd82275557e03936d2f9e2c (patch) | |
tree | d8dacfa5093d5f64fbc91af368e4ac91bdced1ed /src/BlockEntities | |
parent | Exported individual projectile classes to Lua API. (diff) | |
download | cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar.gz cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar.bz2 cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar.lz cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar.xz cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.tar.zst cuberite-881bc66233a4937bdbd82275557e03936d2f9e2c.zip |
Diffstat (limited to 'src/BlockEntities')
-rw-r--r-- | src/BlockEntities/FurnaceEntity.cpp | 2 | ||||
-rw-r--r-- | src/BlockEntities/FurnaceEntity.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/FurnaceEntity.cpp b/src/BlockEntities/FurnaceEntity.cpp index d8ca15c6c..ac71f1541 100644 --- a/src/BlockEntities/FurnaceEntity.cpp +++ b/src/BlockEntities/FurnaceEntity.cpp @@ -349,7 +349,7 @@ void cFurnaceEntity::UpdateProgressBars(bool a_ForceUpdate) int CurFuel = (m_FuelBurnTime > 0) ? 200 - (200 * m_TimeBurned / m_FuelBurnTime) : 0; BroadcastProgress(PROGRESSBAR_FUEL, static_cast<short>(CurFuel)); - int CurCook = (m_NeedCookTime > 0) ? (200 * m_TimeCooked / m_NeedCookTime) : 0; + int CurCook = (m_NeedCookTime > 0) ? (200 * m_TimeCooked / m_NeedCookTime) : 0; BroadcastProgress(PROGRESSBAR_SMELTING_CONFIRM, 200); // Post 1.8, Mojang requires a random packet with an ID of three and value of 200. Wat. Wat. Wat. BroadcastProgress(PROGRESSBAR_SMELTING, static_cast<short>(CurCook)); } diff --git a/src/BlockEntities/FurnaceEntity.h b/src/BlockEntities/FurnaceEntity.h index 8e48810ba..71c2fe127 100644 --- a/src/BlockEntities/FurnaceEntity.h +++ b/src/BlockEntities/FurnaceEntity.h @@ -133,7 +133,7 @@ protected: int m_FuelBurnTime; /** Amount of ticks that the current fuel has been burning */ - int m_TimeBurned; + int m_TimeBurned; /** Sends the specified progressbar value to all clients of the window */ void BroadcastProgress(short a_ProgressbarID, short a_Value); |