From d4c242bf976431722d7928883526e79ac74845eb Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:31:47 +0200 Subject: Added support for chumcap bucket to the chum bucket hider (#301) --- src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java | 8 ++++---- .../java/at/hannibal2/skyhanni/features/misc/ChumBucketHider.kt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java b/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java index 789c849bc..f9e3fe207 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/Fishing.java @@ -98,24 +98,24 @@ public class Fishing { public int barnTimerAlertTime = 330; @Expose - @ConfigOption(name = "Chum Bucket Hider", desc = "") + @ConfigOption(name = "Chum/Chumcap Bucket Hider", desc = "") @Accordion public ChumBucketHider chumBucketHider = new ChumBucketHider(); public static class ChumBucketHider { @Expose - @ConfigOption(name = "Enable", desc = "Hide the Chum Bucket name tags for other players.") + @ConfigOption(name = "Enable", desc = "Hide the Chum/Chumcap Bucket name tags for other players.") @ConfigEditorBoolean public Property enabled = Property.of(true); @Expose - @ConfigOption(name = "Hide Bucket", desc = "Hide the Chum Bucket.") + @ConfigOption(name = "Hide Bucket", desc = "Hide the Chum/Chumcap Bucket.") @ConfigEditorBoolean public Property hideBucket = Property.of(false); @Expose - @ConfigOption(name = "Hide Own", desc = "Hides your own Chum Bucket.") + @ConfigOption(name = "Hide Own", desc = "Hides your own Chum/Chumcap Bucket.") @ConfigEditorBoolean public Property hideOwn = Property.of(false); } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ChumBucketHider.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ChumBucketHider.kt index 5e648d638..98934941f 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ChumBucketHider.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ChumBucketHider.kt @@ -38,7 +38,7 @@ class ChumBucketHider { val name = entity.name // First text line - if (name.endsWith("'s Chum Bucket")) { + if (name.endsWith("'s Chum Bucket") || name.endsWith("'s Chumcap Bucket")) { if (name.contains(LorenzUtils.getPlayerName()) && !config.hideOwn.get()) return titleEntity.add(entity) hiddenEntities.add(entity) @@ -61,7 +61,7 @@ class ChumBucketHider { // Chum Bucket if (config.hideBucket.get()) { - if (entity.inventory.any { it != null && it.name == "§fEmpty Chum Bucket" }) { + if (entity.inventory.any { it != null && (it.name == "§fEmpty Chum Bucket" || it.name == "§aEmpty Chumcap Bucket")}) { val entityLocation = entity.getLorenzVec() for (title in titleEntity) { if (entityLocation.equalsIgnoreY(title.getLorenzVec())) { -- cgit