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:
parent
9684f90f83
commit
b58f0cabad
@ -110,7 +110,6 @@ void cChestEntity::UsedBy(cPlayer * a_Player)
|
||||
if( a_Player->GetWindow() != GetWindow() )
|
||||
{
|
||||
a_Player->OpenWindow( GetWindow() );
|
||||
GetWindow()->SendWholeWindow(*a_Player->GetClientHandle());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,6 @@ void cDropSpenserEntity::UsedBy(cPlayer * a_Player)
|
||||
if (a_Player->GetWindow() != Window)
|
||||
{
|
||||
a_Player->OpenWindow(Window);
|
||||
Window->SendWholeWindow(*a_Player->GetClientHandle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,6 @@ void cFurnaceEntity::UsedBy(cPlayer * a_Player)
|
||||
if (a_Player->GetWindow() != GetWindow())
|
||||
{
|
||||
a_Player->OpenWindow(GetWindow());
|
||||
GetWindow()->SendWholeWindow(*a_Player->GetClientHandle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -438,6 +438,7 @@ void cPlayer::OpenWindow(cWindow * a_Window)
|
||||
CloseWindow();
|
||||
a_Window->OpenedByPlayer(*this);
|
||||
m_CurrentWindow = a_Window;
|
||||
a_Window->SendWholeWindow(*GetClientHandle());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user