Fix rare cable crash related to two neighbour cables being mined at same tick
This commit is contained in:
parent
9947c94414
commit
b108b2c495
@ -64,6 +64,7 @@ abstract class EnergyCableBlockEntity(type: BlockEntityType<*>, blockPos: BlockP
|
|||||||
}
|
}
|
||||||
|
|
||||||
onceServer {
|
onceServer {
|
||||||
|
if (!isRemoved)
|
||||||
updateBlockState(blockRotation.side2Dir(side), neighbour.isPresent || node.neighboursView[GraphNode.link(blockRotation.side2Dir(side))] != null)
|
updateBlockState(blockRotation.side2Dir(side), neighbour.isPresent || node.neighboursView[GraphNode.link(blockRotation.side2Dir(side))] != null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user