From 9cc992d2ee25cc0db630c6a9d92305fbd2f3cf9f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:16:26 +0100 Subject: renamed bingo session --- src/main/java/at/hannibal2/skyhanni/config/Storage.java | 4 ++-- src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/config/Storage.java b/src/main/java/at/hannibal2/skyhanni/config/Storage.java index 3c47ecf9a..3bfcdc860 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Storage.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Storage.java @@ -94,9 +94,9 @@ public class Storage { } @Expose - public Map bingoProfiles = new HashMap<>(); + public Map bingoSessions = new HashMap<>(); - public static class BingoProfile { + public static class BingoSession { @Expose public List tierOneMinionsDone = new ArrayList<>(); diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt index 70ff89127..3f45df300 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/BingoAPI.kt @@ -1,6 +1,6 @@ package at.hannibal2.skyhanni.features.bingo -import at.hannibal2.skyhanni.config.Storage.PlayerSpecific.BingoProfile +import at.hannibal2.skyhanni.config.Storage.PlayerSpecific.BingoSession import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.data.jsonobjects.repo.BingoJson import at.hannibal2.skyhanni.data.jsonobjects.repo.BingoRanksJson @@ -44,9 +44,9 @@ object BingoAPI { tips[displayName] } - val bingoStorage: BingoProfile by lazy { + val bingoStorage: BingoSession by lazy { val playerSpecific = ProfileStorageData.playerSpecific ?: error("playerSpecific is null") - playerSpecific.bingoProfiles.getOrPut(getStartOfMonthInMillis()) { BingoProfile() } + playerSpecific.bingoSessions.getOrPut(getStartOfMonthInMillis()) { BingoSession() } } private fun getStartOfMonthInMillis() = OffsetDateTime.of( -- cgit