Fix cables getting stuck on "powered" blockstate when segments get split
This commit is contained in:
parent
be9641fc03
commit
fcc8fe157e
@ -384,8 +384,8 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
|
|||||||
v.segment.throughput = v.energyThroughput
|
v.segment.throughput = v.energyThroughput
|
||||||
v.segment.throughputKnown = true
|
v.segment.throughputKnown = true
|
||||||
v.segment.transferredLastTick = transferredLastTick
|
v.segment.transferredLastTick = transferredLastTick
|
||||||
v.segment.lastPoweredStatus = lastPoweredStatus
|
|
||||||
v.segment.paths = paths.clone()
|
v.segment.paths = paths.clone()
|
||||||
|
v.updatePoweredState(false)
|
||||||
|
|
||||||
paths.forEach { it.segments.add(v.segment) }
|
paths.forEach { it.segments.add(v.segment) }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user