From ef58e92c169ac94370c8a6dd48146587571cf8d2 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Tue, 23 Aug 2022 22:34:07 +0200 Subject: added rng meter coloring methods --- src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt b/src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt index ad815ad23..9b25933ea 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ItemRenderBackground.kt @@ -12,16 +12,16 @@ class ItemRenderBackground { companion object { - val map = mutableMapOf() - val mapTime = mutableMapOf() + private val mapColor = mutableMapOf() + private val mapTime = mutableMapOf() var ItemStack.background: Int get() { if (System.currentTimeMillis() > mapTime.getOrDefault(this, 0) + 200) return -1 - return map.getOrDefault(this, -1) + return mapColor.getOrDefault(this, -1) } set(value) { - map[this] = value + mapColor[this] = value mapTime[this] = System.currentTimeMillis() } } -- cgit