Fixed personal crafting grid not being tossed on inventory close.
FS #355, http://www.mc-server.org/support/index.php?do=details&task_id=355 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1358 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -863,11 +863,17 @@ void cProtocol125::SendWholeInventory(const cWindow & a_Window)
|
||||
|
||||
|
||||
|
||||
void cProtocol125::SendWindowClose(char a_WindowID)
|
||||
void cProtocol125::SendWindowClose(const cWindow & a_Window)
|
||||
{
|
||||
if (a_Window.GetWindowType() == cWindow::Inventory)
|
||||
{
|
||||
// Do not send inventory-window-close
|
||||
return;
|
||||
}
|
||||
|
||||
cCSLock Lock(m_CSPacket);
|
||||
WriteByte(PACKET_WINDOW_CLOSE);
|
||||
WriteByte(a_WindowID);
|
||||
WriteByte(a_Window.GetWindowID());
|
||||
Flush();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user