1
0
Fork 0

pre-fix for guis, large chests

This commit is contained in:
Sen 2025-07-14 17:01:04 +02:00
parent ab3bc0407c
commit 2e43f24e23
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
99 changed files with 756 additions and 3619 deletions

View file

@ -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();