diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-18 17:14:52 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-05-18 17:14:52 +0200 |
commit | f532ef8aa56ff5dd2b67ca04d7501ecf36bba4c8 (patch) | |
tree | a5f5166e54a743fd3ab13626a07a25089011242c /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 3b22cc895f83720554ba0983872a9567ebcee7c5 (diff) | |
download | skyhanni-f532ef8aa56ff5dd2b67ca04d7501ecf36bba4c8.tar.gz skyhanni-f532ef8aa56ff5dd2b67ca04d7501ecf36bba4c8.tar.bz2 skyhanni-f532ef8aa56ff5dd2b67ca04d7501ecf36bba4c8.zip |
No longer trying to save Visitor Drops when config is not loaded
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorDropStatistics.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |