Skip to content

Commit e604282

Browse files
committed
fix gui flicker
1 parent 0e31a64 commit e604282

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
[3.0.10]
33
- fixed armor textures breaking on 3.0.9 in MC 1.21.9+
4+
- fixed entities flickering in some GUIs in older versions, e.g. horses inventory when using Fresh Animations & some player GUIs
45

56
[3.0.9]
67
- neoforge 1.21.11

src/main/java/traben/entity_model_features/models/animation/EMFAnimationEntityContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ private static void doLimbValues() {
11581158
public static float getHeadYaw() {
11591159
if (emfState == null) return 0;
11601160
if (Float.isNaN(headYaw)) {
1161+
if (isInGui()) return 0;
11611162
doHeadValues();
11621163
}
11631164
return headYaw;
@@ -1170,6 +1171,7 @@ public static void setHeadYaw(float headYaw) {
11701171
public static float getHeadPitch() {
11711172
if (emfState == null) return 0;
11721173
if (Float.isNaN(headPitch)) {
1174+
if (isInGui()) return 0;
11731175
doHeadValues();
11741176
}
11751177
return headPitch;

0 commit comments

Comments
 (0)