Remove IC2 reception support from UniCables. Fixes #1123 and #1280.

This commit is contained in:
Ben Spiers 2014-04-10 23:50:16 +01:00
parent b00bc8b3e9
commit e6bc2b4444

View file

@ -194,52 +194,11 @@ public class PartUniversalCable extends PartTransmitter<EnergyNetwork> implement
}
}
public void register()
{
if(!world().isRemote)
{
if(!Mekanism.ic2Registered.contains(Coord4D.get(tile())))
{
Mekanism.ic2Registered.add(Coord4D.get(tile()));
MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent((IEnergyTile)tile()));
}
}
}
@Override
public void chunkLoad()
{
register();
}
@Override
public void preRemove()
{
if(!world().isRemote)
{
Mekanism.ic2Registered.remove(Coord4D.get(tile()));
MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent((IEnergyTile)tile()));
}
super.preRemove();
}
@Override
public void onAdded()
{
super.onAdded();
register();
}
@Override
public void onChunkUnload()
{
if(!world().isRemote)
{
Mekanism.ic2Registered.remove(Coord4D.get(tile()));
MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent((IEnergyTile)tile()));
getTransmitterNetwork().electricityStored -= lastWrite;
}