diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-03-16 11:03:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 11:03:30 +0100 |
commit | 4f696dca502d52d77a941c0504006878d2133d1f (patch) | |
tree | 30fa1500ee16aa97669a37acecc3dcdfb2ce5f5f /src/main/java/at/hannibal2/skyhanni/features | |
parent | 23278f006e47bf3d9287ad5b4ef3ec7d15c42ded (diff) | |
download | skyhanni-4f696dca502d52d77a941c0504006878d2133d1f.tar.gz skyhanni-4f696dca502d52d77a941c0504006878d2133d1f.tar.bz2 skyhanni-4f696dca502d52d77a941c0504006878d2133d1f.zip |
Feature: Custom fishing hook alert text (#1169)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt index 671ae0841..32e31edf0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt @@ -75,8 +75,9 @@ class FishingHookDisplay { return } if (!armorStand.hasCustomName()) return + val alertText = if (armorStand.name == "§c§l!!!") config.customAlertText.replace("&", "§") else armorStand.name - config.position.renderString(armorStand.name, posLabel = "Fishing Hook Display") + config.position.renderString(alertText, posLabel = "Fishing Hook Display") } private fun EntityArmorStand.hasCorrectName(): Boolean { |