diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 19:56:08 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 19:56:08 +0100 |
commit | 82e11b2bffbd9dd998edfd417aca1b1c4a2094b4 (patch) | |
tree | 79e663c37aa7f0a0225feb4805eeb6c74d29eee9 /src/main | |
parent | bc6b409230b142e3bbffa5a5960f848562ec9dd4 (diff) | |
download | skyhanni-82e11b2bffbd9dd998edfd417aca1b1c4a2094b4.tar.gz skyhanni-82e11b2bffbd9dd998edfd417aca1b1c4a2094b4.tar.bz2 skyhanni-82e11b2bffbd9dd998edfd417aca1b1c4a2094b4.zip |
Counting +64 pumking dicer drop to crop collection (cultivating does not count this)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt index 045be515a..e33c29ffd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt @@ -45,9 +45,13 @@ class GardenCropMilestoneDisplay { private var needsInventory = false -// @SubscribeEvent -// fun onChatMessage(event: LorenzChatEvent) { -// if (!isEnabled()) return + @SubscribeEvent + fun onChatMessage(event: LorenzChatEvent) { + if (!isEnabled()) return + // TODO remove this once hypixel counts 64x pumpkin drops to cultivating + if (event.message == "§a§lUNCOMMON DROP! §r§eDicer dropped §r§f64x §r§fPumpkin§r§e!") { + CropType.PUMPKIN.setCounter(CropType.PUMPKIN.getCounter() + 64) + } // if (config.cropMilestoneWarnClose) { // val matcher = cropMilestoneLevelUpPattern.matcher(event.message) // if (matcher.matches()) { @@ -57,7 +61,7 @@ class GardenCropMilestoneDisplay { // SendTitleHelper.sendTitle("§b$cropType $newLevel", 1_500) // } // } -// } + } @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { |