Cable stays after removing my block (machine)

  • 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:

    1. @Override
    2. public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int meta)
    3. {
    4. if (!world.isRemote)
    5. {
    6. world.setBlockMetadataWithNotify(x,y,z,0,3);
    7. }
    8. }

    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?


  • My guess is probably a problem with reading. Have you read the Notes attached to the Energy Net? You should have done that before.

    If reading the usage.txt of the Enet doesn't help, then Player will come and explain it to you.