From 083d4efa17f8da5405a24d16fad36a6ce26f0656 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 24 May 2022 10:52:08 +0700 Subject: [PATCH] Use HashMap for userData storage --- src/main/kotlin/ru/dbotthepony/mc/otm/graph/Abstract6Graph.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/graph/Abstract6Graph.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/graph/Abstract6Graph.kt index e102d0862..5d10b8612 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/graph/Abstract6Graph.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/graph/Abstract6Graph.kt @@ -11,6 +11,7 @@ import ru.dbotthepony.mc.otm.addPreWorldTicker import ru.dbotthepony.mc.otm.core.plus import java.util.* import kotlin.collections.ArrayList +import kotlin.collections.HashMap abstract class Abstract6Graph : IConditionalTickable { @JvmField @@ -26,7 +27,7 @@ abstract class Abstract6Graph : IConditionalTickable { * Allows storing arbitrary data by external code */ @JvmField - val userData = Object2ObjectAVLTreeMap() + val userData = HashMap() abstract fun onNodeRemoved(node: Graph6Node) abstract fun onNodeAdded(node: Graph6Node)