Skip to content

Commit

Permalink
Fix some bug, can't remember which one
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Jun 10, 2024
1 parent 3595aa0 commit 7f2f97a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public static Map<Holder.Reference<Block>, ChunkRenderTypeSet> createBlockTypeMa
blockPropertiesMap.forEach((id, blockType) -> {
ResourceLocation resourceLocation = new ResourceLocation(id.getNamespace(), id.getName());

Holder.Reference<Block> 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;
Expand Down

0 comments on commit 7f2f97a

Please sign in to comment.