Don't remove self from lively nodes when all we can do is self-feed

This commit is contained in:
DBotThePony 2023-12-31 10:29:27 +07:00
parent a162caefb6
commit 6be24540a5
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -96,8 +96,10 @@ class EnergyCableGraph : GraphNodeList<EnergyCableBlockEntity.Node, EnergyCableG
for (side in node.sides.values) { for (side in node.sides.values) {
if (side.isEnabled) { if (side.isEnabled) {
if (fromNode === node && side.side === fromSide) if (fromNode === node && side.side === fromSide) {
hit = true
continue continue
}
side.neighbour.get().ifPresentK { side.neighbour.get().ifPresentK {
if (it !is EnergyCableBlockEntity.CableSide) { if (it !is EnergyCableBlockEntity.CableSide) {