diff --git a/src/main/java/net/irisshaders/iris/shaderpack/materialmap/BlockMaterialMapping.java b/src/main/java/net/irisshaders/iris/shaderpack/materialmap/BlockMaterialMapping.java index c80d8f3cc4..1ee4ba3da3 100644 --- a/src/main/java/net/irisshaders/iris/shaderpack/materialmap/BlockMaterialMapping.java +++ b/src/main/java/net/irisshaders/iris/shaderpack/materialmap/BlockMaterialMapping.java @@ -42,9 +42,9 @@ public static Map, ChunkRenderTypeSet> createBlockTypeMa blockPropertiesMap.forEach((id, blockType) -> { ResourceLocation resourceLocation = new ResourceLocation(id.getNamespace(), id.getName()); - Holder.Reference block = ForgeRegistries.BLOCKS.getDelegateOrThrow(resourceLocation); - - blockTypeIds.put(block, ChunkRenderTypeSet.of(convertBlockToRenderType(blockType))); + ForgeRegistries.BLOCKS.getDelegate(resourceLocation).ifPresent( + block -> blockTypeIds.put(block, ChunkRenderTypeSet.of(convertBlockToRenderType(blockType))) + ); }); return blockTypeIds;