diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 16:38:38 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 16:38:38 +0100 |
commit | 628c23e8a8713c7ece482fa4ea7eb979f2561017 (patch) | |
tree | c116ed94a25176ee214559f38269211aa0803c15 /src/main/java/at/hannibal2/skyhanni/features/fishing | |
parent | 4fa9b95a280515b1fa71425e8e1c61d5b4a009f6 (diff) | |
download | skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.tar.gz skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.tar.bz2 skyhanni-628c23e8a8713c7ece482fa4ea7eb979f2561017.zip |
explaining the usage on wrong command parameters, added color support, code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt index cdb990afe..8df5ed2d5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureFeatures.kt @@ -52,7 +52,9 @@ class SeaCreatureFeatures { { config.highlight } RenderLivingEntityHelper.setNoHurtTime(entity) { config.highlight } - if (creatureType == RareSeaCreatureType.WATER_HYDRA && entity.health == (entity.baseMaxHealth.toFloat() / 2)) continue; // Water hydra splitting in two + // Water hydra splitting in two + if (creatureType == RareSeaCreatureType.WATER_HYDRA && entity.health == (entity.baseMaxHealth.toFloat() / 2)) continue + if (config.alertOtherCatches && lastRareCatch.passedSince() > 1.seconds) { val creature = SeaCreatureManager.allFishingMobs[creatureType.nametag] TitleManager.sendTitle("${creature?.rarity?.chatColorCode ?: "ยง6"}RARE SEA CREATURE!", 1.5.seconds, 3.6, 7.0) |