mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Fixed a potential (non-crashing) NPE.
This commit is contained in:
parent
5274cb8da0
commit
bf9de41a7b
@ -139,7 +139,7 @@ trait ComponentInventory extends Inventory with network.Environment {
|
||||
def isComponentSlot(slot: Int) = true
|
||||
|
||||
protected def connectItemNode(node: Node) {
|
||||
if (node != null) {
|
||||
if (this.node != null && node != null) {
|
||||
this.node.connect(node)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user