Advertisement
PaleoCrafter

Untitled

Dec 26th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. @Override
  2. public void onNeighborBlockChange(World world, int x, int y, int z, int newId) {
  3.   for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
  4.     if (world.getBlockTileEntity(x + side.offsetX, y + side.offsetY, z + side.offsetZ) instanceof TileCable) {
  5.       TileCable tile = (TileCable) world.getBlockTileEntity(x + side.offsetX, y + side.offsetY, z + side.offsetZ);
  6.       tile.checkConnections();
  7.     }
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement