From f7138175fb8d1cf8ecb752d2cbde91c114d2992b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 29 Jan 2020 20:32:24 +0100 Subject: [PATCH] made the ender crate renderer a bit nicer --- .../naturesaura/blocks/tiles/render/RenderEnderCrate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/render/RenderEnderCrate.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/render/RenderEnderCrate.java index 7b82969c..a39bca58 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/render/RenderEnderCrate.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/render/RenderEnderCrate.java @@ -47,10 +47,10 @@ public class RenderEnderCrate extends TileEntityRenderer { } private void renderFace(Matrix4f mat, IVertexBuilder builder, float h, float i, float n, float o, float p) { - builder.pos(mat, (float) 0.0, h, (float) 1.0).color(n, o, p, 1.0F).endVertex(); - builder.pos(mat, (float) 1.0, h, (float) 1.0).color(n, o, p, 1.0F).endVertex(); - builder.pos(mat, (float) 1.0, i, (float) 0.0).color(n, o, p, 1.0F).endVertex(); - builder.pos(mat, (float) 0.0, i, (float) 0.0).color(n, o, p, 1.0F).endVertex(); + builder.pos(mat, 2 / 16F, h, 14 / 16F).color(n, o, p, 1.0F).endVertex(); + builder.pos(mat, 14 / 16F, h, 14 / 16F).color(n, o, p, 1.0F).endVertex(); + builder.pos(mat, 14 / 16F, i, 2 / 16F).color(n, o, p, 1.0F).endVertex(); + builder.pos(mat, 2 / 16F, i, 2 / 16F).color(n, o, p, 1.0F).endVertex(); } protected int getPasses(double dist) {