Brought back the try-catch around item rendering
@@ -188,6 +188,7 @@ public class TileEntityDrawersRenderer implements BlockEntityRenderer<TileEntity
matrix.scale(1, -1, 1);
matrix.scale(16, 16, 16);
+ try {
BakedModel itemModel = itemRenderer.getModel(itemStack, null, null, 0);
boolean render3D = itemModel.isGui3d(); // itemModel.usesBlockLight();
@@ -198,6 +199,9 @@ public class TileEntityDrawersRenderer implements BlockEntityRenderer<TileEntity
matrix.last().normal().load(Matrix3f.createScaleMatrix(1, 1, 1));
itemRenderer.render(itemStack, ItemTransforms.TransformType.GUI, false, matrix, buffer, combinedLight, combinedOverlay, itemModel);
+ } catch (Exception e) {
+ // Shrug
+ }
matrix.popPose();
}
