Make tile activeContainer assignment consistent.

This commit is contained in:
md_5 2017-01-27 11:42:21 +11:00
parent 16b5116c7c
commit 80dd971b52

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