diff options
author | Yasin <a.piri@hotmail.de> | 2024-07-23 00:04:02 +0200 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2024-07-26 15:09:00 +0800 |
commit | a26143be386e78094d9a32e0d2c70439afd56369 (patch) | |
tree | e9f57e51350adc33ab9f8b73e8d1fc5bfd443544 /src/main/java/de/hysky/skyblocker | |
parent | 7918e2102865bc804b25a20aa8caafd4765b54ad (diff) | |
download | Skyblocker-a26143be386e78094d9a32e0d2c70439afd56369.tar.gz Skyblocker-a26143be386e78094d9a32e0d2c70439afd56369.tar.bz2 Skyblocker-a26143be386e78094d9a32e0d2c70439afd56369.zip |
nukekubi head fix
Diffstat (limited to 'src/main/java/de/hysky/skyblocker')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java b/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java index 81e328ca..d1a7b83c 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java @@ -123,14 +123,15 @@ public class MobGlow { } private static boolean isNukekubiHead(ArmorStandEntity entity) { + boolean armorfound = false; for (ItemStack armorItem : entity.getArmorItems()) { // eb07594e2df273921a77c101d0bfdfa1115abed5b9b2029eb496ceba9bdbb4b3 is texture id for the nukekubi head, // compare against it to exclusively find armorstands that are nukekubi heads // get the texture of the nukekubi head item itself and compare it String texture = ItemUtils.getHeadTexture(armorItem); - return texture.contains("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWIwNzU5NGUyZGYyNzM5MjFhNzdjMTAxZDBiZmRmYTExMTVhYmVkNWI5YjIwMjllYjQ5NmNlYmE5YmRiYjRiMyJ9fX0="); + armorfound |= texture.contains("eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZWIwNzU5NGUyZGYyNzM5MjFhNzdjMTAxZDBiZmRmYTExMTVhYmVkNWI5YjIwMjllYjQ5NmNlYmE5YmRiYjRiMyJ9fX0="); } - return false; + return armorfound; } } |