mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Added null-check to PlatformModel for #2684
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user