ResourceKey[minecraft:worldgen/biome / minecraft:warped_forest] [net.minecraft.resources.ResourceKey]
Error occurred while handling event 'ftbquests.custom_reward': The choice of Java method net.minecraft.core.Holder$Reference.m_203373_ matching JavaScript argument types (net.minecraft.resources.ResourceKey) is ambiguous; candidate methods are:
boolean m_203373_(net.minecraft.resources.ResourceLocation)
boolean m_203565_(net.minecraft.resources.ResourceKey) (startup_scripts:custom_rewards.js#45)
biome = "warped_forest"
let biomeResourceKey = $ResourceKey.create(
$Registry.BIOME_REGISTRY,
biome
)
console.log(biomeResourceKey)
let found = serverLevel.findNearestBiome(
(currentBiome) => currentBiome.is(biomeResourceKey),
minecraftPlayer.getOnPos(),
1024,
4
)
tried
currentBiome['m_203565_(net.minecraft.resources.ResourceKey)'](biomeResourceKey)
currentBiome['is(net.minecraft.resources.ResourceKey)'](biomeResourceKey)
currentBiome["boolean is(net.minecraft.resources.ResourceKey)"](biomeResourceKey)
and didn't work 
