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 13e60b2b5..85764bd1e 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 @@ -1,8 +1,5 @@ package ru.dbotthepony.mc.otm.block.entity.cable -import it.unimi.dsi.fastutil.ints.IntLists -import it.unimi.dsi.fastutil.objects.ObjectLinkedOpenHashSet -import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet import it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap import it.unimi.dsi.fastutil.objects.ReferenceArraySet import it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet @@ -19,6 +16,7 @@ import ru.dbotthepony.mc.otm.onceServer import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashSet +import kotlin.collections.LinkedHashSet import kotlin.math.ln class EnergyCableGraph : GraphNodeList() { @@ -69,7 +67,7 @@ class EnergyCableGraph : GraphNodeList() + val segments = LinkedHashSet() private var shortCircuit = false private var lastTickTransfers = 0 private var lastTick = 0 @@ -134,7 +132,7 @@ class EnergyCableGraph : GraphNodeList() + private val nodes = LinkedHashSet() private val paths = ReferenceOpenHashSet() operator fun contains(node: EnergyCableBlockEntity.Node): Boolean {