1
0

Furnace now lights up when smelting items

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1069 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
luksor111@gmail.com 2012-11-26 14:42:24 +00:00
parent eb7131bd12
commit 65cf4ad33d

View File

@ -119,6 +119,7 @@ bool cFurnaceEntity::Tick( float a_Dt )
// We have just finished smelting, reset the progress bar: // We have just finished smelting, reset the progress bar:
BroadcastProgress(PROGRESSBAR_SMELTING, 0); BroadcastProgress(PROGRESSBAR_SMELTING, 0);
m_TimeCooked = 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 // There is no fuel and no flame, no need to tick at all
return false; return false;
@ -199,6 +200,7 @@ bool cFurnaceEntity::StartCooking(void)
if (m_Items[2].IsEqual(*R->Out) || m_Items[2].IsEmpty()) if (m_Items[2].IsEqual(*R->Out) || m_Items[2].IsEmpty())
{ {
// good to go // 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 if( m_TimeBurned >= m_BurnTime ) // burn new material
{ {