Skip to content

Commit 193470f

Browse files
committed
Fix nametag rotation issue in 1.12.x
1 parent eb08280 commit 193470f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

versions/1.12.2-fabric/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.render.entity.EntityRenderer;
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 = "renderLabelIfPresent", at = @At(value = "FIELD", target = "Lnet/minecraft/client/render/entity/EntityRenderDispatcher;yaw:F"))
1213
private float polynametag$fixNametagRotation(float yaw) {
13-
if (PolyNametagConfig.isEnabled()) {
14+
if (PolyNametagConfig.isEnabled() && OmniPerspective.getCurrentPerspective() == OmniPerspective.THIRD_PERSON_FRONT) {
1415
yaw *= -1.0F;
1516
}
1617

0 commit comments

Comments
 (0)