boolean foundConnection = false;
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
TileEntity te = getBundle().getLocation().getLocation(dir).getTileEntity(getBundle().getWorld());
if(te != null && te instanceof IGridHost) {
IGridNode node = ((IGridHost) te).getGridNode(ForgeDirection.UNKNOWN);
foundConnection |= validConnections.contains(dir);
if(node == null) {
node = ((IGridHost) te).getGridNode(dir.getOpposite());
}
if(node != null) {
node.updateState();
}
}
}
if(!foundConnection && hasNode()) {
getNode().destroy();