From 5813a3ad65cd6ebd18e0342e46d8f17107e48d28 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 11 Feb 2025 18:13:19 +0700 Subject: [PATCH] Make "powered" cable display handle more edge cases --- .../dbotthepony/mc/otm/block/entity/cable/EnergyCableGraph.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableGraph.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableGraph.kt index 1e2053a9f..df421a4b4 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableGraph.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/cable/EnergyCableGraph.kt @@ -233,6 +233,7 @@ class EnergyCableGraph : GraphNodeList 0) { lastPoweredStatus = numState nodes.forEach { if (it.segment === this) it.updatePoweredState(newState) } } @@ -395,6 +396,7 @@ class EnergyCableGraph : GraphNodeList