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 | e092f573375b53d9191527c3dd083aef57ee5853 (patch) | |
| tree | 79e663c37aa7f0a0225feb4805eeb6c74d29eee9 | |
| parent | 7d194802c6267fcd9ab0bea630b8af6c1c345c56 (diff) | |
| download | SkyHanni-e092f573375b53d9191527c3dd083aef57ee5853.tar.gz SkyHanni-e092f573375b53d9191527c3dd083aef57ee5853.tar.bz2 SkyHanni-e092f573375b53d9191527c3dd083aef57ee5853.zip | |
Counting +64 pumking dicer drop to crop collection (cultivating does not count this)
| -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) { |
