diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-07 14:05:35 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-07 14:05:35 +0200 |
commit | b53b40b5610c456176f4b7962e1af1cc49562930 (patch) | |
tree | f3e24c0f4d063d9c8c59f8b3c56745fd0da041c8 /source/cFurnaceEntity.cpp | |
parent | Removed the build folder (diff) | |
download | cuberite-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 'source/cFurnaceEntity.cpp')
-rw-r--r-- | source/cFurnaceEntity.cpp | 4 |
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() ) |