package refinedstorage.tile;

import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.nbt.NBTTagCompound;
import refinedstorage.RefinedStorageUtils;
import refinedstorage.inventory.InventorySimple;
import refinedstorage.item.ItemUpgrade;

public class TileWirelessTransmitter extends TileMachine {
    public static final int RANGE_PER_UPGRADE = 8;

    private InventorySimple inventory = new InventorySimple("upgrades", 4, this);

    @Override
    public int getEnergyUsage() {
        return 8 + RefinedStorageUtils.getUpgradeEnergyUsage(inventory);
    }

    @Override
    public void updateMachine() {
    }

    @Override
    public void readFromNBT(NBTTagCompound nbt) {
        super.readFromNBT(nbt);

        RefinedStorageUtils.restoreInventory(inventory, 0, nbt);
    }

    @Override
    public void writeToNBT(NBTTagCompound nbt) {
        super.writeToNBT(nbt);

        RefinedStorageUtils.saveInventory(inventory, 0, nbt);
    }

    public int getRange() {
        return 16 + (RefinedStorageUtils.getUpgradeCount(inventory, ItemUpgrade.TYPE_RANGE) * RANGE_PER_UPGRADE);
    }

    @Override
    public Class<? extends Container> getContainer() {
        return null;
    }

    @Override
    public IInventory getDroppedInventory() {
        return inventory;
    }
}

@@ -192,16 +192,78 @@
 eUtils;%0A
+import refinedstorage.container.ContainerWirelessTransmitter;%0A
 import r
@@ -1291,12 +1291,42 @@
 urn 
-null
+ContainerWirelessTransmitter.class
 ;%0A  

Fix wireless transmitter not sending container updates