Skip to content

Commit eb08280

Browse files
committed
Fix nametag rotation issue in 1.8.x
1 parent 4c86d2a commit eb08280

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/polyfrost/polynametag/mixin/client/Mixin_FixNametagRotation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.polyfrost.polynametag.mixin.client;
22

3+
import dev.deftu.omnicore.api.client.options.OmniPerspective;
34
import net.minecraft.client.renderer.entity.Render;
45
import org.polyfrost.polynametag.client.PolyNametagConfig;
56
import org.spongepowered.asm.mixin.Mixin;
@@ -10,7 +11,7 @@
1011
public abstract class Mixin_FixNametagRotation {
1112
@ModifyArg(method = "renderLivingLabel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/GlStateManager;rotate(FFFF)V", ordinal = 1), index = 0)
1213
private float polynametag$fixNametagRotation(float angle) {
13-
if (PolyNametagConfig.isEnabled()) {
14+
if (PolyNametagConfig.isEnabled() && OmniPerspective.getCurrentPerspective() == OmniPerspective.THIRD_PERSON_FRONT) {
1415
angle *= -1.0F;
1516
}
1617

0 commit comments

Comments
 (0)