Small fix

This commit is contained in:
paulevsGitch 2020-12-13 01:40:27 +03:00
parent fbcb6e6993
commit d9fe8e5646

View file

@ -18,13 +18,15 @@ import ru.betterend.registry.EndBiomes;
public class InternalBiomeDataMixin {
@Inject(method = "addEndBiomeReplacement", at = @At("TAIL"))
private static void beAddIslandsBiomeFromFabric(RegistryKey<Biome> replaced, RegistryKey<Biome> variant, double weight, CallbackInfo info) {
if (replaced == BiomeKeys.SMALL_END_ISLANDS) {
if (replaced.equals(BiomeKeys.SMALL_END_ISLANDS)) {
Biome biome = BuiltinRegistries.BIOME.get(variant);
Identifier id = BuiltinRegistries.BIOME.getId(biome);
if (!id.getNamespace().equals(BetterEnd.MOD_ID)) {
EndBiomes.FABRIC_VOID.add(id);
if (BetterEnd.isDevEnvironment()) {
System.out.println("Added " + id + " from Fabric small islands biome map");
}
}
}
}
}