Make tile activeContainer assignment consistent.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2017-01-27 11:42:21 +11:00
parent 49758a0994
commit 4166ac5145

View file

@ -304,9 +304,9 @@
+ return;
+ }
this.nextContainerCounter();
+ this.activeContainer = container;
this.playerConnection.sendPacket(new PacketPlayOutOpenWindow(this.containerCounter, itileentitycontainer.getContainerName(), itileentitycontainer.getScoreboardDisplayName()));
- this.activeContainer = itileentitycontainer.createContainer(this.inventory, this);
+ this.activeContainer = container;
+ // CraftBukkit end
this.activeContainer.windowId = this.containerCounter;
this.activeContainer.addSlotListener(this);