diff options
author | Vahvl <74665243+Vahvl@users.noreply.github.com> | 2023-10-30 22:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 21:14:52 +0100 |
commit | 2160f5820f6febb5d02e3a64c019090a3798174b (patch) | |
tree | 51bc377e9cfad61a87dc3ab12a4a345f050996ff /src/main/java/at/hannibal2 | |
parent | 9c21b0508af399b5a5924b82cf45985c7c75b343 (diff) | |
download | skyhanni-2160f5820f6febb5d02e3a64c019090a3798174b.tar.gz skyhanni-2160f5820f6febb5d02e3a64c019090a3798174b.tar.bz2 skyhanni-2160f5820f6febb5d02e3a64c019090a3798174b.zip |
added a banner to warn the player if the worm cap is full (#608)
Added a title warning to the Worm Cap Alert ping sound. #608
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt index e90e550b9..fa2b9b824 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingTimer.kt @@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.utils.TimeUnit import at.hannibal2.skyhanni.utils.TimeUtils import net.minecraft.entity.item.EntityArmorStand import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import kotlin.time.Duration.Companion.seconds class FishingTimer { private val config get() = SkyHanniMod.feature.fishing.barnTimer @@ -67,6 +68,7 @@ class FishingTimer { if (inHollows && newCount >= 60 && config.wormLimitAlert) { SoundUtils.playBeepSound() + LorenzUtils.sendTitle("§cWORM CAP FULL!!!", 2.seconds) } } @@ -124,4 +126,4 @@ class FishingTimer { event.move(3, "fishing.manualResetTimer", "fishing.barnTimer.manualResetTimer") event.move(3, "fishing.barnTimerPos", "fishing.barnTimer.pos") } -}
\ No newline at end of file +} |