@Override public void detectAndSendChanges() { super.detectAndSendChanges(); if (inv instanceof TileEntityBase) { // keep in sync with ContainerEnderCap#detectAndSendChanges() final SPacketUpdateTileEntity updatePacket = ((TileEntityBase) inv).getUpdatePacket(); if (updatePacket != null) { for (IContainerListener containerListener : listeners) { if (containerListener instanceof EntityPlayerMP) { ((EntityPlayerMP) containerListener).connection.sendPacket(updatePacket); } } } } }
updatePacket = getUpdatePacket(); if (updatePacket == null) { return;