From 00fcca67cc806988059248ba0072bf6c344d7059 Mon Sep 17 00:00:00 2001 From: Uraneptus Date: Wed, 18 Sep 2024 17:37:06 +0200 Subject: [PATCH] forgot spotless --- Xplat/src/main/java/vazkii/neat/HealthBarRenderer.java | 3 +-- Xplat/src/main/java/vazkii/neat/mixin/EntityRendererMixin.java | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Xplat/src/main/java/vazkii/neat/HealthBarRenderer.java b/Xplat/src/main/java/vazkii/neat/HealthBarRenderer.java index 6b6bf5a..c2695d1 100644 --- a/Xplat/src/main/java/vazkii/neat/HealthBarRenderer.java +++ b/Xplat/src/main/java/vazkii/neat/HealthBarRenderer.java @@ -17,7 +17,6 @@ import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.LivingEntity; -import net.minecraft.world.entity.monster.Monster; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemDisplayContext; import net.minecraft.world.item.ItemStack; @@ -150,7 +149,7 @@ private static boolean shouldShowPlate(LivingEntity living, Entity cameraEntity) float distance = living.distanceTo(cameraEntity); if (distance > NeatConfig.instance.maxDistance() || (distance > NeatConfig.instance.maxDistanceWithoutLineOfSight() - && !living.hasLineOfSight(cameraEntity))) { + && !living.hasLineOfSight(cameraEntity))) { return false; } if (!NeatConfig.instance.showOnBosses() && isBoss(living)) { diff --git a/Xplat/src/main/java/vazkii/neat/mixin/EntityRendererMixin.java b/Xplat/src/main/java/vazkii/neat/mixin/EntityRendererMixin.java index 75a92fc..3a8f707 100644 --- a/Xplat/src/main/java/vazkii/neat/mixin/EntityRendererMixin.java +++ b/Xplat/src/main/java/vazkii/neat/mixin/EntityRendererMixin.java @@ -1,13 +1,16 @@ package vazkii.neat.mixin; import com.mojang.blaze3d.vertex.PoseStack; + import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.entity.EntityRenderer; import net.minecraft.world.entity.Entity; + import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + import vazkii.neat.NeatConfig; @Mixin(EntityRenderer.class)