Skip to content

Commit

Permalink
fix: Tagged blocks returning air
Browse files Browse the repository at this point in the history
Fixes GH-73
  • Loading branch information
null2264 committed Jun 18, 2024
1 parent 9edb194 commit 6266eff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/io/github/null2264/cobblegen/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ public static List<ResourceLocation> getTaggedBlockIds(ResourceLocation tagId) {
blockList.ifPresent(t -> t.stream().forEach(taggedBlock -> {
//#if MC>1.16.5
Optional<ResourceKey<Block>> key = taggedBlock.unwrapKey();
if (key.isPresent()) {
ResourceKey<Block> actualKey = key.get();
blockIds.add(actualKey.registry());
}
key.ifPresent(k -> blockIds.add(k.location()));
//#else
//$$ blockIds.add(getBlockId(taggedBlock));
//#endif
Expand Down

0 comments on commit 6266eff

Please sign in to comment.