i'm with stupid

This commit is contained in:
DBotThePony 2025-03-29 20:44:56 +07:00
parent e85bc72ef2
commit e3f9b8dc64
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -656,11 +656,7 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
val side = node.sides[relSide]!!
if (!side.isEnabled) {
if (isMaster)
itr.remove()
else
indicesToRemove.add(i)
indicesToRemove.add(i)
livelyNodes.remove(pair)
continue
} else if (fromNode === node && side.side === fromSide) {
@ -670,11 +666,7 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
val it = side.neighbour.get()
if (it == null || it is EnergyCableBlockEntity.CableSide) {
if (isMaster)
itr.remove()
else
indicesToRemove.add(i)
indicesToRemove.add(i)
livelyNodes.remove(pair)
continue
}