1
0

Window contents are sent whenever the window is opened by a player.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1533 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-05-30 19:42:19 +00:00
parent 9684f90f83
commit b58f0cabad
4 changed files with 1 additions and 3 deletions

View File

@ -110,7 +110,6 @@ void cChestEntity::UsedBy(cPlayer * a_Player)
if( a_Player->GetWindow() != GetWindow() )
{
a_Player->OpenWindow( GetWindow() );
GetWindow()->SendWholeWindow(*a_Player->GetClientHandle());
}
}

View File

@ -219,7 +219,6 @@ void cDropSpenserEntity::UsedBy(cPlayer * a_Player)
if (a_Player->GetWindow() != Window)
{
a_Player->OpenWindow(Window);
Window->SendWholeWindow(*a_Player->GetClientHandle());
}
}
}

View File

@ -88,7 +88,6 @@ void cFurnaceEntity::UsedBy(cPlayer * a_Player)
if (a_Player->GetWindow() != GetWindow())
{
a_Player->OpenWindow(GetWindow());
GetWindow()->SendWholeWindow(*a_Player->GetClientHandle());
}
}
}

View File

@ -438,6 +438,7 @@ void cPlayer::OpenWindow(cWindow * a_Window)
CloseWindow();
a_Window->OpenedByPlayer(*this);
m_CurrentWindow = a_Window;
a_Window->SendWholeWindow(*GetClientHandle());
}