mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-24 14:06:42 +01:00
Fix crash in JEI rendering -- still far from functional
This commit is contained in:
parent
1e0711fa95
commit
a7c1ae3ec5
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ import com.mojang.blaze3d.vertex.IVertexBuilder;
|
||||||
import com.simibubi.create.foundation.utility.ColorHelper;
|
import com.simibubi.create.foundation.utility.ColorHelper;
|
||||||
|
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.block.Blocks;
|
||||||
import net.minecraft.block.FireBlock;
|
import net.minecraft.block.FireBlock;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.renderer.BlockRendererDispatcher;
|
import net.minecraft.client.renderer.BlockRendererDispatcher;
|
||||||
|
@ -74,7 +75,7 @@ public class ScreenElementRenderer {
|
||||||
Minecraft mc = Minecraft.getInstance();
|
Minecraft mc = Minecraft.getInstance();
|
||||||
BlockRendererDispatcher blockRenderer = mc.getBlockRendererDispatcher();
|
BlockRendererDispatcher blockRenderer = mc.getBlockRendererDispatcher();
|
||||||
IBakedModel modelToRender = null;
|
IBakedModel modelToRender = null;
|
||||||
BlockState blockToRender = null;
|
BlockState blockToRender = Blocks.AIR.getDefaultState();
|
||||||
boolean stateMode = transformsAndModel == null;
|
boolean stateMode = transformsAndModel == null;
|
||||||
boolean fire = false;
|
boolean fire = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue