From f532ef8aa56ff5dd2b67ca04d7501ecf36bba4c8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 18 May 2023 17:14:52 +0200 Subject: No longer trying to save Visitor Drops when config is not loaded --- .../skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt index c056a8eb4..acdcf5753 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.features.garden.visitor import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.ProfileStorageData import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -50,6 +51,7 @@ object GardenVisitorDropStatistics { @SubscribeEvent fun onChat(event: LorenzChatEvent) { if (!GardenAPI.onBarnPlot) return + if (!ProfileStorageData.loaded) return val message = event.message.removeColor().trim() copperPattern.matchMatcher(message) { -- cgit