2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.26'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27'
}


8 changes: 6 additions & 2 deletions src/main/java/codechicken/lib/render/CCModelLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import codechicken.lib.vec.Matrix4;
import codechicken.lib.vec.Quat;
import codechicken.lib.vec.Rotation;
import codechicken.lib.vec.Scale;
import codechicken.lib.vec.Vector3;

public class CCModelLibrary {
Expand Down Expand Up @@ -82,7 +81,12 @@ private static void addIcosahedronTriangle(Vector3 vec1, double u1, double v1, V
i++;
}

@Deprecated
public static Matrix4 getRenderMatrix(Vector3 position, Rotation rotation, double scale) {
return new Matrix4().translate(position).apply(new Scale(scale)).apply(rotation);
return new Matrix4().translate(position).scale(scale).apply(rotation);
}

public static Matrix4 getRenderMatrix(double posX, double posY, double posZ, Rotation rotation, double scale) {
return new Matrix4().translate(posX, posY, posZ).scale(scale).apply(rotation);
}
}
Loading