Fix crafting and storage monitor display.

This commit is contained in:
Sebastian Hartte
2020-06-19 00:30:52 +02:00
parent f2a9d8c806
commit fb31fab2cc
3 changed files with 8 additions and 4 deletions
@@ -47,12 +47,12 @@ public class TesrRenderHelper {
public static void rotateToFace(MatrixStack mStack, Direction face, byte spin) {
switch (face) {
case UP:
mStack.rotate(Vector3f.XP.rotationDegrees(90.0F));
mStack.rotate(Vector3f.ZP.rotationDegrees(spin * 90.0F));
mStack.rotate(Vector3f.XP.rotationDegrees(270));
mStack.rotate(Vector3f.ZP.rotationDegrees(- spin * 90.0F));
break;
case DOWN:
mStack.rotate(Vector3f.XP.rotationDegrees(-90.0F));
mStack.rotate(Vector3f.XP.rotationDegrees(90.0F));
mStack.rotate(Vector3f.ZP.rotationDegrees(spin * -90.0F));
break;
@@ -239,7 +239,10 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay
Direction facing = this.getSide().getFacing();
TesrRenderHelper.rotateToFace(matrixStack, facing, this.getSpin());
TesrRenderHelper.renderItem2dWithAmount(matrixStack, buffers, ais, 0.8f, 0.17f, combinedLightIn,
matrixStack.translate(0, 0.05, 0.5);
TesrRenderHelper.renderItem2dWithAmount(matrixStack, buffers, ais, 0.4f, -0.23f, 15728880,
combinedOverlayIn);
matrixStack.pop();
@@ -18,6 +18,7 @@
package appeng.tile.networking;
import appeng.client.render.TesrRenderHelper;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.renderer.IRenderTypeBuffer;