pre-fix for guis, large chests
This commit is contained in:
parent
ab3bc0407c
commit
2e43f24e23
99 changed files with 756 additions and 3619 deletions
|
@ -1233,8 +1233,12 @@ public class Client implements IThreadListener {
|
|||
{
|
||||
if(!this.refreshing)
|
||||
this.waitingForFile = false;
|
||||
if(this.player != null)
|
||||
this.player.setScreenClosed();
|
||||
if(this.player != null) {
|
||||
if(this.getNetHandler() != null)
|
||||
this.getNetHandler().addToSendQueue(new CPacketAction(CPacketAction.Action.CLOSE_CONTAINER, this.player.openContainer.windowId));
|
||||
this.player.inventory.setItemStack(null);
|
||||
this.player.openContainer = this.player.inventoryContainer;
|
||||
}
|
||||
if (this.open != null)
|
||||
{
|
||||
this.open.onGuiClosed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue