aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 19:56:08 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 19:56:08 +0100
commite092f573375b53d9191527c3dd083aef57ee5853 (patch)
tree79e663c37aa7f0a0225feb4805eeb6c74d29eee9
parent7d194802c6267fcd9ab0bea630b8af6c1c345c56 (diff)
downloadSkyHanni-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.kt12
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) {