summaryrefslogtreecommitdiffstats
path: root/source/cChestEntity.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/cChestEntity.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 'source/cChestEntity.cpp')
-rw-r--r--source/cChestEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cChestEntity.cpp b/source/cChestEntity.cpp
index 4a46167c0..5d015f42e 100644
--- a/source/cChestEntity.cpp
+++ b/source/cChestEntity.cpp
@@ -28,6 +28,7 @@ cChestEntity::cChestEntity(int a_X, int a_Y, int a_Z, cWorld * a_World)
, m_JoinedChest( NULL )
{
m_Content = new cItem[ c_ChestHeight * c_ChestWidth ];
+ SetBlockEntity(this); // cBlockEntityWindowOwner
}
@@ -173,7 +174,6 @@ void cChestEntity::UsedBy(cPlayer * a_Player)
cWindow * Window = new cWindow(this, true, cWindow::Chest, 1);
Window->SetSlots(GetContents(), GetChestHeight() * c_ChestWidth);
Window->SetWindowTitle("UberChest");
- Window->GetOwner()->SetEntity(this);
OpenWindow( Window );
}
if ( GetWindow() )