summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-26 15:42:24 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-26 15:42:24 +0100
commit65cf4ad33d31c231303624562162f91a100dad4d (patch)
tree14d2fdaa33b7248c0f431a816a95fe0afb48f1ef
parentFixed certain blocks crashing clients when mined (diff)
downloadcuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar.gz
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar.bz2
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar.lz
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar.xz
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.tar.zst
cuberite-65cf4ad33d31c231303624562162f91a100dad4d.zip
-rw-r--r--source/FurnaceEntity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/FurnaceEntity.cpp b/source/FurnaceEntity.cpp
index 15298cbdd..ce33dbcc6 100644
--- a/source/FurnaceEntity.cpp
+++ b/source/FurnaceEntity.cpp
@@ -119,6 +119,7 @@ bool cFurnaceEntity::Tick( float a_Dt )
// We have just finished smelting, reset the progress bar:
BroadcastProgress(PROGRESSBAR_SMELTING, 0);
m_TimeCooked = 0;
+ m_World->FastSetBlock(m_PosX, m_PosY, m_PosZ, E_BLOCK_FURNACE, m_World->GetBlockMeta(m_PosX, m_PosY, m_PosZ));
}
// There is no fuel and no flame, no need to tick at all
return false;
@@ -199,6 +200,7 @@ bool cFurnaceEntity::StartCooking(void)
if (m_Items[2].IsEqual(*R->Out) || m_Items[2].IsEmpty())
{
// good to go
+ m_World->FastSetBlock(m_PosX, m_PosY, m_PosZ, E_BLOCK_LIT_FURNACE, m_World->GetBlockMeta(m_PosX, m_PosY, m_PosZ));
if( m_TimeBurned >= m_BurnTime ) // burn new material
{