diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-01 05:55:17 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-01 05:55:17 +0100 |
commit | d7068b35a85f0c0248a5533240087747d02e1a17 (patch) | |
tree | 7d40a34bdda09c0fbccc9e8052043709cfd88d7b /source/cWindow.cpp | |
parent | Chests, furnaces and dispensers face the correct way now. (diff) | |
download | cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.gz cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.bz2 cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.lz cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.xz cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.tar.zst cuberite-d7068b35a85f0c0248a5533240087747d02e1a17.zip |
Diffstat (limited to 'source/cWindow.cpp')
-rw-r--r-- | source/cWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cWindow.cpp b/source/cWindow.cpp index 68c8d4142..02ee3c541 100644 --- a/source/cWindow.cpp +++ b/source/cWindow.cpp @@ -48,7 +48,7 @@ cItem* cWindow::GetDraggingItem( cPlayer * a_Player /* = 0 */ ) {
if( m_bInventoryVisible && a_Player )
{
- cWindow* Window = a_Player->GetInventory().GetWindow();
+ cWindow* Window = a_Player->GetSurvivalInventory().GetWindow();
if( Window )
{
return Window->GetDraggingItem();
@@ -68,7 +68,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player ) if( m_bInventoryVisible )
{
- cWindow* Window = a_Player.GetInventory().GetWindow();
+ cWindow* Window = a_Player.GetSurvivalInventory().GetWindow();
if( Window )
{
m_DraggingItem = Window->GetDraggingItem();
@@ -170,7 +170,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player ) {
a_ClickPacket->m_WindowID = 0;
a_ClickPacket->m_SlotNum -= (short)(m_NumSlots - 9);
- cWindow* Window = a_Player.GetInventory().GetWindow();
+ cWindow* Window = a_Player.GetSurvivalInventory().GetWindow();
if( Window )
{
Window->Clicked( a_ClickPacket, a_Player );
|