Revert "Fix Animation Offsets with Vanilla Offsets"

This reverts commit f95e7afb4e.
This commit is contained in:
Kam committed 2026-02-23 18:50:27 -05:00
1 parent 25f7114340
commit dbe835612d
1 file changed
-11
@@ -86,9 +86,6 @@ public abstract class MixinModelRenderer {
float prevAngleX = this.rotateAngleX;
float prevAngleY = this.rotateAngleY;
float prevAngleZ = this.rotateAngleZ;
float prevOffsetX = this.offsetX;
float prevOffsetY = this.offsetY;
float prevOffsetZ = this.offsetZ;
boolean changedAngles = false;
try {
@@ -152,11 +149,6 @@ public abstract class MixinModelRenderer {
GL11.glPopMatrix();
}
// Mirror vanilla ModelRenderer behavior: always undo offset translation.
// Without this, models that animate via offsetX/Y/Z (e.g. witch nose while drinking)
// leak transforms into subsequent renders.
GL11.glTranslatef(-this.offsetX, -this.offsetY, -this.offsetZ);
if (changedAngles) {
this.rotationPointX = prevPointX;
this.rotationPointY = prevPointY;
@@ -164,9 +156,6 @@ public abstract class MixinModelRenderer {
this.rotateAngleX = prevAngleX;
this.rotateAngleY = prevAngleY;
this.rotateAngleZ = prevAngleZ;
this.offsetX = prevOffsetX;
this.offsetY = prevOffsetY;
this.offsetZ = prevOffsetZ;
}
}
}