diff options
Diffstat (limited to 'src/main')
3 files changed, 17 insertions, 17 deletions
diff --git a/src/main/java/de/hysky/skyblocker/mixin/ClientPlayNetworkHandlerMixin.java b/src/main/java/de/hysky/skyblocker/mixin/ClientPlayNetworkHandlerMixin.java index 15339c78..9e11e5ff 100644 --- a/src/main/java/de/hysky/skyblocker/mixin/ClientPlayNetworkHandlerMixin.java +++ b/src/main/java/de/hysky/skyblocker/mixin/ClientPlayNetworkHandlerMixin.java @@ -79,9 +79,9 @@ public abstract class ClientPlayNetworkHandlerMixin { } @Inject(method = "onBlockUpdate", at = @At("RETURN")) private void skyblocker$onBlockUpdate(BlockUpdateS2CPacket packet, CallbackInfo ci) { - BeaconHighlighter.positions.remove(packet.getPos()); + BeaconHighlighter.beaconPositions.remove(packet.getPos()); if(packet.getState().toString().contains("minecraft:beacon")) { - BeaconHighlighter.positions.add(packet.getPos()); + BeaconHighlighter.beaconPositions.add(packet.getPos()); } } } diff --git a/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java b/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java index 98929e7c..667318a4 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/end/BeaconHighlighter.java @@ -11,7 +11,7 @@ import java.util.ArrayList; import java.util.List; public class BeaconHighlighter { - public static List<BlockPos> positions = new ArrayList<>(); + public static List<BlockPos> beaconPositions = new ArrayList<>(); /** * Initializes the beacon highlighting system. @@ -28,9 +28,9 @@ public class BeaconHighlighter { */ public static void render(WorldRenderContext context) { if(Utils.isInTheEnd() && SkyblockerConfigManager.get().slayer.endermanSlayer.highlightBeacons) - positions.forEach((it) -> RenderHelper.renderFilled( + beaconPositions.forEach((position) -> RenderHelper.renderFilled( context, - it, + position, new float[]{1.0f, 0.0f, 0.0f}, 0.5f, false 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 f7fb7a3e..4f789f7b 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/entity/MobGlow.java @@ -71,22 +71,22 @@ public class MobGlow { if(SkyblockerConfigManager.get().slayer.endermanSlayer.highlightNukekubiHeads && entity instanceof ArmorStandEntity) { // check for items in the armor sets - for (net.minecraft.item.ItemStack it : entity.getArmorItems()) { + for (net.minecraft.item.ItemStack armorItem : entity.getArmorItems()) { // hacky way to check if an item is a player head w/o // some shenanigans - if(!it.toString().startsWith("1 player_head")) + if(!armorItem.toString().startsWith("1 player_head")) continue; - if (it.hasNbt()) { - assert it.getNbt() != null; + if (armorItem.hasNbt()) { + assert armorItem.getNbt() != null; // eb07594e2df273921a77c101d0bfdfa1115abed5b9b2029eb496ceba9bdbb4b3 is texture id // for the nukekubi head, compare against it to exclusively find // armorstands that are nukekubi heads - if (it.getNbt().contains("SkullOwner")) { + if (armorItem.getNbt().contains("SkullOwner")) { // get the texture of the nukekubi head item itself and // compare it - var texture = it + var texture = armorItem .getNbt() .getCompound("SkullOwner") .getCompound("Properties") @@ -125,22 +125,22 @@ public class MobGlow { // copypaste nukekebi head logic if(entity instanceof ArmorStandEntity) { - for (net.minecraft.item.ItemStack it : entity.getArmorItems()) { + for (net.minecraft.item.ItemStack armorItem : entity.getArmorItems()) { // hacky way to check if an item is a player head w/o // some shenanigans - if(!it.toString().startsWith("1 player_head")) + if(!armorItem.toString().startsWith("1 player_head")) continue; - if (it.hasNbt()) { - assert it.getNbt() != null; + if (armorItem.hasNbt()) { + assert armorItem.getNbt() != null; // eb07594e2df273921a77c101d0bfdfa1115abed5b9b2029eb496ceba9bdbb4b3 is texture id // for the nukekubi head, compare against it to exclusively find // armorstands that are nukekubi heads - if (it.getNbt().contains("SkullOwner")) { + if (armorItem.getNbt().contains("SkullOwner")) { // get the texture of the nukekebi head item itself and // compare it - var texture = it + var texture = armorItem .getNbt() .getCompound("SkullOwner") .getCompound("Properties") |