Fix rare cable crash related to two neighbour cables being mined at same tick

This commit is contained in:
DBotThePony 2025-02-19 21:35:55 +07:00
parent 9947c94414
commit b108b2c495
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -64,7 +64,8 @@ abstract class EnergyCableBlockEntity(type: BlockEntityType<*>, blockPos: BlockP
}
onceServer {
updateBlockState(blockRotation.side2Dir(side), neighbour.isPresent || node.neighboursView[GraphNode.link(blockRotation.side2Dir(side))] != null)
if (!isRemoved)
updateBlockState(blockRotation.side2Dir(side), neighbour.isPresent || node.neighboursView[GraphNode.link(blockRotation.side2Dir(side))] != null)
}
}
})