mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-11 13:04:05 +01:00
Fix crash in JEI rendering -- still far from functional
This commit is contained in:
parent
1e0711fa95
commit
a7c1ae3ec5
@ -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 New Issue
Block a user