aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-03-16 11:03:30 +0100
committerGitHub <noreply@github.com>2024-03-16 11:03:30 +0100
commit4f696dca502d52d77a941c0504006878d2133d1f (patch)
tree30fa1500ee16aa97669a37acecc3dcdfb2ce5f5f /src/main/java/at/hannibal2/skyhanni/features/fishing
parent23278f006e47bf3d9287ad5b4ef3ec7d15c42ded (diff)
downloadskyhanni-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/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt3
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 {