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 crash with the Constructor (raoulvdberge)
|
||||
- Fixed patterns being able to crash when no inputs are provided (raoulvdberge)
|
||||
- Fixed possible crash with network scanning (raoulvdberge)
|
||||
|
||||
### 1.5.23
|
||||
- Fixed duplication bug with autocrafting (raoulvdberge)
|
||||
|
@@ -182,10 +182,13 @@ public class NetworkNodeGraph implements INetworkNodeGraph {
|
||||
for (EnumFacing checkSide : EnumFacing.VALUES) {
|
||||
if (checkSide != side) { // Avoid going backward
|
||||
INetworkNodeProxy nodeOnSideProxy = NETWORK_NODE_PROXY_CAPABILITY.cast(tile.getCapability(NETWORK_NODE_PROXY_CAPABILITY, checkSide));
|
||||
INetworkNode nodeOnSide = nodeOnSideProxy.getNode();
|
||||
|
||||
if (nodeOnSide == node) {
|
||||
operator.apply(world, pos.offset(checkSide), checkSide.getOpposite());
|
||||
if (nodeOnSideProxy != null) {
|
||||
INetworkNode nodeOnSide = nodeOnSideProxy.getNode();
|
||||
|
||||
if (nodeOnSide == node) {
|
||||
operator.apply(world, pos.offset(checkSide), checkSide.getOpposite());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user