Fixed possible crash with network scanning, fixes #1544
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
- Fixed Exporter with Stack Upgrade not working correctly in Regulator Mode (raoulvdberge)
|
- Fixed Exporter with Stack Upgrade not working correctly in Regulator Mode (raoulvdberge)
|
||||||
- Fixed crash with the Constructor (raoulvdberge)
|
- Fixed crash with the Constructor (raoulvdberge)
|
||||||
- Fixed patterns being able to crash when no inputs are provided (raoulvdberge)
|
- Fixed patterns being able to crash when no inputs are provided (raoulvdberge)
|
||||||
|
- Fixed possible crash with network scanning (raoulvdberge)
|
||||||
|
|
||||||
### 1.5.23
|
### 1.5.23
|
||||||
- Fixed duplication bug with autocrafting (raoulvdberge)
|
- Fixed duplication bug with autocrafting (raoulvdberge)
|
||||||
|
@@ -182,6 +182,8 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
|||||||
for (EnumFacing checkSide : EnumFacing.VALUES) {
|
for (EnumFacing checkSide : EnumFacing.VALUES) {
|
||||||
if (checkSide != side) { // Avoid going backward
|
if (checkSide != side) { // Avoid going backward
|
||||||
INetworkNodeProxy nodeOnSideProxy = NETWORK_NODE_PROXY_CAPABILITY.cast(tile.getCapability(NETWORK_NODE_PROXY_CAPABILITY, checkSide));
|
INetworkNodeProxy nodeOnSideProxy = NETWORK_NODE_PROXY_CAPABILITY.cast(tile.getCapability(NETWORK_NODE_PROXY_CAPABILITY, checkSide));
|
||||||
|
|
||||||
|
if (nodeOnSideProxy != null) {
|
||||||
INetworkNode nodeOnSide = nodeOnSideProxy.getNode();
|
INetworkNode nodeOnSide = nodeOnSideProxy.getNode();
|
||||||
|
|
||||||
if (nodeOnSide == node) {
|
if (nodeOnSide == node) {
|
||||||
@@ -193,3 +195,4 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user