mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
Make tile activeContainer assignment consistent.
This commit is contained in:
@@ -304,9 +304,9 @@
|
|||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
this.nextContainerCounter();
|
this.nextContainerCounter();
|
||||||
|
+ this.activeContainer = container;
|
||||||
this.playerConnection.sendPacket(new PacketPlayOutOpenWindow(this.containerCounter, itileentitycontainer.getContainerName(), itileentitycontainer.getScoreboardDisplayName()));
|
this.playerConnection.sendPacket(new PacketPlayOutOpenWindow(this.containerCounter, itileentitycontainer.getContainerName(), itileentitycontainer.getScoreboardDisplayName()));
|
||||||
- this.activeContainer = itileentitycontainer.createContainer(this.inventory, this);
|
- this.activeContainer = itileentitycontainer.createContainer(this.inventory, this);
|
||||||
+ this.activeContainer = container;
|
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
this.activeContainer.windowId = this.containerCounter;
|
this.activeContainer.windowId = this.containerCounter;
|
||||||
this.activeContainer.addSlotListener(this);
|
this.activeContainer.addSlotListener(this);
|
||||||
|
Reference in New Issue
Block a user