mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Update to Official classnames Patchwork Make the game compile and run Merge in the new HUD overlay API Merge in the new render properties API PEEL Use Gradle 7.2 snapshot to fix eclipse integration bug in 7.1, Would use 7.0 but FG needs 7.1 for some reason. New FML installer Update to 1.17.1 Co-authored-by: LexManos <[email protected]> Co-authored-by: SizableShrimp <[email protected]> Co-authored-by: cpw <[email protected]> Co-authored-by: Curle <[email protected]> Co-authored-by: Unnoen <[email protected]> Co-authored-by: covers1624 <[email protected]> Co-authored-by: DaemonUmbra <[email protected]> Co-authored-by: gigaherz <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
--- a/com/mojang/math/Transformation.java
|
|
+++ b/com/mojang/math/Transformation.java
|
|
@@ -6,7 +_,7 @@
|
|
import net.minecraft.Util;
|
|
import org.apache.commons.lang3.tuple.Triple;
|
|
|
|
-public final class Transformation {
|
|
+public final class Transformation implements net.minecraftforge.client.extensions.IForgeTransformation {
|
|
private final Matrix4f f_121078_;
|
|
private boolean f_121079_;
|
|
@Nullable
|
|
@@ -145,6 +_,19 @@
|
|
public int hashCode() {
|
|
return Objects.hash(this.f_121078_);
|
|
}
|
|
+
|
|
+ private Matrix3f normalTransform = null;
|
|
+ public Matrix3f getNormalMatrix() {
|
|
+ checkNormalTransform();
|
|
+ return normalTransform;
|
|
+ }
|
|
+ private void checkNormalTransform() {
|
|
+ if (normalTransform == null) {
|
|
+ normalTransform = new Matrix3f(f_121078_);
|
|
+ normalTransform.m_8187_();
|
|
+ normalTransform.m_8155_();
|
|
+ }
|
|
+ }
|
|
|
|
public Transformation m_175937_(Transformation p_175938_, float p_175939_) {
|
|
Vector3f vector3f = this.m_175940_();
|