From e89cb61bf9d128c921dcfca5b52d8e32418f40be Mon Sep 17 00:00:00 2001 From: WayofTime Date: Fri, 17 Jun 2016 09:55:30 -0400 Subject: [PATCH] Fixed the Routing system so that it properly eliminates the connection to the Master node when the Master node is broken. Fixes #805 --- changelog.txt | 1 + .../WayofTime/bloodmagic/tile/routing/TileRoutingNode.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/changelog.txt b/changelog.txt index c3a2edb3..ad0b113f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version 2.0.2-45 ------------------------------------------------------ - 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 diff --git a/src/main/java/WayofTime/bloodmagic/tile/routing/TileRoutingNode.java b/src/main/java/WayofTime/bloodmagic/tile/routing/TileRoutingNode.java index 76c00128..8101ffa9 100644 --- a/src/main/java/WayofTime/bloodmagic/tile/routing/TileRoutingNode.java +++ b/src/main/java/WayofTime/bloodmagic/tile/routing/TileRoutingNode.java @@ -165,6 +165,11 @@ public class TileRoutingNode extends TileInventory implements IRoutingNode, IIte connectionList.remove(pos1); getWorld().notifyBlockUpdate(getPos(), getWorld().getBlockState(getPos()), getWorld().getBlockState(getPos()), 3); } + + if (pos1.equals(masterPos)) + { + this.masterPos = BlockPos.ORIGIN; + } } @Override