diff --git a/src/main/java/io/github/null2264/cobblegen/util/Util.java b/src/main/java/io/github/null2264/cobblegen/util/Util.java index 440dcf2..380ae80 100644 --- a/src/main/java/io/github/null2264/cobblegen/util/Util.java +++ b/src/main/java/io/github/null2264/cobblegen/util/Util.java @@ -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; } }