Fix crash in JEI rendering -- still far from functional

This commit is contained in:
tterrag 2020-04-04 22:08:57 -04:00
parent 1e0711fa95
commit a7c1ae3ec5

View File

@ -12,6 +12,7 @@ import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.simibubi.create.foundation.utility.ColorHelper;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.FireBlock;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
@ -74,7 +75,7 @@ public class ScreenElementRenderer {
Minecraft mc = Minecraft.getInstance();
BlockRendererDispatcher blockRenderer = mc.getBlockRendererDispatcher();
IBakedModel modelToRender = null;
BlockState blockToRender = null;
BlockState blockToRender = Blocks.AIR.getDefaultState();
boolean stateMode = transformsAndModel == null;
boolean fire = false;