Small fix
This commit is contained in:
parent
fbcb6e6993
commit
d9fe8e5646
1 changed files with 6 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue