Small fix
This commit is contained in:
parent
fbcb6e6993
commit
d9fe8e5646
1 changed files with 6 additions and 4 deletions
|
@ -18,9 +18,10 @@ import ru.betterend.registry.EndBiomes;
|
||||||
public class InternalBiomeDataMixin {
|
public class InternalBiomeDataMixin {
|
||||||
@Inject(method = "addEndBiomeReplacement", at = @At("TAIL"))
|
@Inject(method = "addEndBiomeReplacement", at = @At("TAIL"))
|
||||||
private static void beAddIslandsBiomeFromFabric(RegistryKey<Biome> replaced, RegistryKey<Biome> variant, double weight, CallbackInfo info) {
|
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);
|
Biome biome = BuiltinRegistries.BIOME.get(variant);
|
||||||
Identifier id = BuiltinRegistries.BIOME.getId(biome);
|
Identifier id = BuiltinRegistries.BIOME.getId(biome);
|
||||||
|
if (!id.getNamespace().equals(BetterEnd.MOD_ID)) {
|
||||||
EndBiomes.FABRIC_VOID.add(id);
|
EndBiomes.FABRIC_VOID.add(id);
|
||||||
if (BetterEnd.isDevEnvironment()) {
|
if (BetterEnd.isDevEnvironment()) {
|
||||||
System.out.println("Added " + id + " from Fabric small islands biome map");
|
System.out.println("Added " + id + " from Fabric small islands biome map");
|
||||||
|
@ -28,3 +29,4 @@ public class InternalBiomeDataMixin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue