Fix cables getting stuck on "powered" blockstate when segments get split

This commit is contained in:
DBotThePony 2025-02-11 14:37:51 +07:00
parent be9641fc03
commit fcc8fe157e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -384,8 +384,8 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
v.segment.throughput = v.energyThroughput
v.segment.throughputKnown = true
v.segment.transferredLastTick = transferredLastTick
v.segment.lastPoweredStatus = lastPoweredStatus
v.segment.paths = paths.clone()
v.updatePoweredState(false)
paths.forEach { it.segments.add(v.segment) }