Im making my first machine and I've just encountered a problem with IC2 cables:
Everything woks: all IC2 cables connects automaticly to my block and providies power, but
after I remove (eg. with picaxe) my block, the cable stays unchanged and "connects" to the postioton, where my block previously was.
I've tried to put this simple method in my block-class:
Code
@Override
public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int meta)
{
if (!world.isRemote)
{
world.setBlockMetadataWithNotify(x,y,z,0,3);
}
}
Hoping it "resets" the metadata on this position, but it doesn't work.
To fix the cable's direction I must remove the cable in game (break it) and put again a new one.
How can I "refresh" the cable(s) that there it no block anymore?
-thanks