mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
Should fix potential NPE in cable rendering.
This commit is contained in:
parent
d0e94c473e
commit
610c5b8fdb
@ -121,6 +121,7 @@ object Cable {
|
||||
case _ => !world.isAirBlock(tpos)
|
||||
}) {
|
||||
val neighborTileEntity = world.getTileEntity(tpos)
|
||||
if (neighborTileEntity != null && neighborTileEntity.getWorld != null) {
|
||||
val neighborHasNode = hasNetworkNode(neighborTileEntity, side.getOpposite)
|
||||
val canConnectColor = canConnectBasedOnColor(tileEntity, neighborTileEntity)
|
||||
val canConnectFMP = !Mods.ForgeMultipart.isAvailable ||
|
||||
@ -131,6 +132,7 @@ object Cable {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user