diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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) { |