Added null-check to PlatformModel for #2684

This commit is contained in:
Saurabh Totey committed 2018-10-01 13:46:11 -06:00
1 parent bd2c468ba4
commit 46713ef180
1 file changed
+3
@@ -40,6 +40,9 @@ public class PlatformModel implements IBakedModel {
@Nonnull
@Override
public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand) {
if(state == null)
return ImmutableList.of();
if(state.getBlock() != ModBlocks.platform)
return Minecraft.getMinecraft().getBlockRendererDispatcher().getBlockModelShapes().getModelManager().getMissingModel().getQuads(state, side, rand);