From 1c9130c3f141e3a968c9abdb96ad9e4a77925bfa Mon Sep 17 00:00:00 2001 From: James Seibel Date: Wed, 18 Jun 2025 17:36:22 -0500 Subject: [PATCH] update McObjectConverter for matricies --- .../common/wrappers/McObjectConverter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/McObjectConverter.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/McObjectConverter.java index 59501545f..b5b4e67a0 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/McObjectConverter.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/McObjectConverter.java @@ -49,7 +49,9 @@ public class McObjectConverter @Deprecated public static Mat4f Convert( #if MC_VER < MC_1_19_4 com.mojang.math.Matrix4f - #else org.joml.Matrix4f #endif + #elif MC_VER < MC_1_21_6 org.joml.Matrix4f + #else org.joml.Matrix4fc + #endif mcMatrix) { FloatBuffer buffer = FloatBuffer.allocate(16); @@ -63,7 +65,9 @@ public class McObjectConverter /** Taken from Minecraft's com.mojang.math.Matrix4f class from 1.18.2 */ private static void storeMatrix( #if MC_VER < MC_1_19_4 com.mojang.math.Matrix4f - #else org.joml.Matrix4f #endif + #elif MC_VER < MC_1_21_6 org.joml.Matrix4f + #else org.joml.Matrix4fc + #endif matrix, FloatBuffer buffer) {