More fixes
This commit is contained in:
@@ -201,7 +201,7 @@ public class Quad implements IVertexProducer, ISmartVertexConsumer {
|
||||
vertex.normal[3] = 0;
|
||||
}
|
||||
}
|
||||
this.orientation = Direction.getFacingFromVector(this.normal.getX(), this.normal.getY(), this.normal.getZ());
|
||||
this.orientation = Direction.getFacing(this.normal.getX(), this.normal.getY(), this.normal.getZ());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -121,7 +121,7 @@ public class QuadCornerKicker extends QuadTransformer {
|
||||
float z = vertex.vec[2];
|
||||
if (epsComp(x, corner.pX(this.box)) && epsComp(y, corner.pY(this.box))
|
||||
&& epsComp(z, corner.pZ(this.box))) {
|
||||
Vec3i vec = Direction.values()[hoz].getDirectionVec();
|
||||
Vec3i vec = Direction.values()[hoz].getVector();
|
||||
x -= vec.getX() * this.thickness;
|
||||
y -= vec.getY() * this.thickness;
|
||||
z -= vec.getZ() * this.thickness;
|
||||
|
||||
+3
-3
@@ -18,8 +18,8 @@
|
||||
|
||||
package appeng.thirdparty.codechicken.lib.model.pipeline.transformers;
|
||||
|
||||
import net.minecraft.client.util.math.Vector4f;
|
||||
import net.minecraft.util.math.Matrix4f;
|
||||
import net.minecraft.client.renderer.Vector4f;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraftforge.client.model.pipeline.IVertexConsumer;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class QuadMatrixTransformer extends QuadTransformer {
|
||||
|
||||
static {
|
||||
identity = new Matrix4f();
|
||||
identity.setIdentity();
|
||||
identity.loadIdentity();
|
||||
}
|
||||
|
||||
private final Vector4f storage = new Vector4f();
|
||||
@@ -78,7 +78,7 @@ public class QuadMatrixTransformer extends QuadTransformer {
|
||||
vertex.normal[2] = storage.getZ();
|
||||
}
|
||||
Quad.Vertex v0 = quad.vertices[0];
|
||||
quad.orientation = Direction.getFacingFromVector(v0.normal[0], v0.normal[1], v0.normal[2]);
|
||||
quad.orientation = Direction.getFacing(v0.normal[0], v0.normal[1], v0.normal[2]);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user