Skip to content

Commit

Permalink
fix: It's only a holder on 1.18.2 or newer
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Sep 10, 2024
1 parent c92f531 commit 1b07ba4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/io/github/null2264/cobblegen/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ public static String getBiome(LevelAccessor level, BlockPos position) {
//#else
//$$ net.minecraft.core.registries.Registries.BIOME
//#endif
).getKey(level.getBiome(position).value());
).getKey(
level.getBiome(position)
//#if MC>=1.18.2
.value()
//#endif
);
return biome != null ? biome.toString() : null;
}
}

0 comments on commit 1b07ba4

Please sign in to comment.