Fix compatibility with fabric-api 0.20

This commit is contained in:
Sebastian Hartte
2020-09-05 19:30:00 +02:00
parent 92b6650022
commit ca007a3737
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ yarn_mappings=1.16.2+build.6
loader_version=0.9.2+build.206
#Fabric api
fabric_version=0.17.2+build.396-1.16
fabric_version=0.20.1+build.401-1.16
loom_version=0.4-SNAPSHOT
@@ -24,7 +24,6 @@ import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.renderer.v1.mesh.MutableQuadView;
import net.fabricmc.fabric.api.renderer.v1.render.RenderContext;
import net.fabricmc.fabric.impl.client.indigo.renderer.mesh.MutableQuadViewImpl;
import net.minecraft.client.util.math.Vector3f;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Quaternion;
@@ -93,10 +92,6 @@ public class QuadRotator implements RenderContext.QuadTransform {
}
}
// FIXME FABRIC: Wait for Grondags response about this one
MutableQuadViewImpl quadImpl = (MutableQuadViewImpl) quad;
quadImpl.lightFace(rotation.rotate(quad.lightFace()));
// Transform the nominal face, setting the cull face will also overwrite the
// nominialFace,
// hence saving both first and the order here.