diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 21:42:19 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-30 21:42:19 +0200 |
commit | b58f0cabada406deca90272c350c30020d080e2c (patch) | |
tree | 93f5f7af56110577923007196a35c9ae1d342abb | |
parent | LuaWindow: Initial code, the window can be opened, but not much manipulated (diff) | |
download | cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar.gz cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar.bz2 cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar.lz cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar.xz cuberite-b58f0cabada406deca90272c350c30020d080e2c.tar.zst cuberite-b58f0cabada406deca90272c350c30020d080e2c.zip |
-rw-r--r-- | source/BlockEntities/ChestEntity.cpp | 1 | ||||
-rw-r--r-- | source/BlockEntities/DropSpenserEntity.cpp | 1 | ||||
-rw-r--r-- | source/BlockEntities/FurnaceEntity.cpp | 1 | ||||
-rw-r--r-- | source/Player.cpp | 1 |
4 files changed, 1 insertions, 3 deletions
diff --git a/source/BlockEntities/ChestEntity.cpp b/source/BlockEntities/ChestEntity.cpp index 769fadc22..cd2b15e2b 100644 --- a/source/BlockEntities/ChestEntity.cpp +++ b/source/BlockEntities/ChestEntity.cpp @@ -110,7 +110,6 @@ void cChestEntity::UsedBy(cPlayer * a_Player) if( a_Player->GetWindow() != GetWindow() ) { a_Player->OpenWindow( GetWindow() ); - GetWindow()->SendWholeWindow(*a_Player->GetClientHandle()); } } diff --git a/source/BlockEntities/DropSpenserEntity.cpp b/source/BlockEntities/DropSpenserEntity.cpp index c0993d676..900ecb172 100644 --- a/source/BlockEntities/DropSpenserEntity.cpp +++ b/source/BlockEntities/DropSpenserEntity.cpp @@ -219,7 +219,6 @@ void cDropSpenserEntity::UsedBy(cPlayer * a_Player) if (a_Player->GetWindow() != Window)
{
a_Player->OpenWindow(Window);
- Window->SendWholeWindow(*a_Player->GetClientHandle());
}
}
}
diff --git a/source/BlockEntities/FurnaceEntity.cpp b/source/BlockEntities/FurnaceEntity.cpp index b199f480b..d4cdf3f89 100644 --- a/source/BlockEntities/FurnaceEntity.cpp +++ b/source/BlockEntities/FurnaceEntity.cpp @@ -88,7 +88,6 @@ void cFurnaceEntity::UsedBy(cPlayer * a_Player) if (a_Player->GetWindow() != GetWindow()) { a_Player->OpenWindow(GetWindow()); - GetWindow()->SendWholeWindow(*a_Player->GetClientHandle()); } } } diff --git a/source/Player.cpp b/source/Player.cpp index 254e58655..8970719f1 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -438,6 +438,7 @@ void cPlayer::OpenWindow(cWindow * a_Window) CloseWindow(); a_Window->OpenedByPlayer(*this); m_CurrentWindow = a_Window; + a_Window->SendWholeWindow(*GetClientHandle()); } |