Fixed the Routing system so that it properly eliminates the connection to the Master node when the Master node is broken. Fixes #805
This commit is contained in:
parent
1d8a47ce1e
commit
e89cb61bf9
|
@ -2,6 +2,7 @@
|
||||||
Version 2.0.2-45
|
Version 2.0.2-45
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
- Changed the recipe of the Sanguine Scientiem
|
- Changed the recipe of the Sanguine Scientiem
|
||||||
|
- Fixed the Routing system so that it properly eliminates the connection to the Master node when the Master node is broken.
|
||||||
|
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
Version 2.0.2-44
|
Version 2.0.2-44
|
||||||
|
|
|
@ -165,6 +165,11 @@ public class TileRoutingNode extends TileInventory implements IRoutingNode, IIte
|
||||||
connectionList.remove(pos1);
|
connectionList.remove(pos1);
|
||||||
getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(getPos()), getWorld().getBlockState(getPos()), 3);
|
getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(getPos()), getWorld().getBlockState(getPos()), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pos1.equals(masterPos))
|
||||||
|
{
|
||||||
|
this.masterPos = BlockPos.ORIGIN;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue