summaryrefslogtreecommitdiffstats
path: root/source/cFurnaceEntity.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-07 14:05:35 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-07 14:05:35 +0200
commitb53b40b5610c456176f4b7962e1af1cc49562930 (patch)
treef3e24c0f4d063d9c8c59f8b3c56745fd0da041c8 /source/cFurnaceEntity.cpp
parentRemoved the build folder (diff)
downloadcuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar.gz
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar.bz2
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar.lz
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar.xz
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.tar.zst
cuberite-b53b40b5610c456176f4b7962e1af1cc49562930.zip
Diffstat (limited to '')
-rw-r--r--source/cFurnaceEntity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cFurnaceEntity.cpp b/source/cFurnaceEntity.cpp
index f127e05e8..6fe1936e9 100644
--- a/source/cFurnaceEntity.cpp
+++ b/source/cFurnaceEntity.cpp
@@ -22,7 +22,7 @@
cFurnaceEntity::cFurnaceEntity(int a_X, int a_Y, int a_Z, cWorld * a_World)
- : cBlockEntity( E_BLOCK_FURNACE, a_X, a_Y, a_Z, a_World )
+ : cBlockEntity( E_BLOCK_FURNACE, a_X, a_Y, a_Z, a_World )
, m_Items( new cItem[3] )
, m_CookingItem( 0 )
, m_CookTime( 0 )
@@ -30,6 +30,7 @@ cFurnaceEntity::cFurnaceEntity(int a_X, int a_Y, int a_Z, cWorld * a_World)
, m_BurnTime( 0 )
, m_TimeBurned( 0 )
{
+ SetBlockEntity(this); // cBlockEntityWindowOwner
}
@@ -83,7 +84,6 @@ void cFurnaceEntity::UsedBy( cPlayer * a_Player )
cWindow* Window = new cFurnaceWindow( this );
Window->SetSlots( m_Items, 3 );
Window->SetWindowTitle("UberFurnace");
- Window->GetOwner()->SetEntity(this);
OpenWindow( Window );
}
if( GetWindow() )