From bdcf034f7f881292fce64346292b03e5045dd9de Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sat, 27 Nov 2021 11:30:38 -0800 Subject: [PATCH] Shadows causing trouble? No more shadows --- .../flywheel/mixin/matrix/PoseStackMixin.java | 24 ++++--------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/jozufozu/flywheel/mixin/matrix/PoseStackMixin.java b/src/main/java/com/jozufozu/flywheel/mixin/matrix/PoseStackMixin.java index 8588b9546..40db441c4 100644 --- a/src/main/java/com/jozufozu/flywheel/mixin/matrix/PoseStackMixin.java +++ b/src/main/java/com/jozufozu/flywheel/mixin/matrix/PoseStackMixin.java @@ -9,48 +9,34 @@ import com.mojang.math.Quaternion; @Mixin(PoseStack.class) public abstract class PoseStackMixin implements TransformStack { - @Shadow - public abstract void mulPose(Quaternion pQuaternion); - - @Shadow - public abstract void shadow$scale(float factorX, float factorY, float factorZ); - - @Shadow - public abstract void shadow$pushPose(); - - @Shadow - public abstract void shadow$popPose(); - - @Shadow - public abstract void shadow$translate(double x, double y, double z); @Override public TransformStack multiply(Quaternion quaternion) { - mulPose(quaternion); + ((PoseStack)(Object) this).mulPose(quaternion); return this; } @Override public TransformStack scale(float factorX, float factorY, float factorZ) { - shadow$scale(factorX, factorY, factorZ); + ((PoseStack)(Object) this).scale(factorX, factorY, factorZ); return this; } @Override public TransformStack pushPose() { - shadow$pushPose(); + ((PoseStack)(Object) this).pushPose(); return this; } @Override public TransformStack popPose() { - shadow$popPose(); + ((PoseStack)(Object) this).popPose(); return this; } @Override public TransformStack translate(double x, double y, double z) { - shadow$translate(x, y, z); + ((PoseStack)(Object) this).translate(x, y, z); return this; } }