From 65cf4ad33d31c231303624562162f91a100dad4d Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Mon, 26 Nov 2012 14:42:24 +0000 Subject: Furnace now lights up when smelting items git-svn-id: http://mc-server.googlecode.com/svn/trunk@1069 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FurnaceEntity.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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 { -- cgit v1.2.3