Dont use BuiltinRegistries

This commit is contained in:
SD 2021-03-30 09:35:49 +05:30
parent 81942640df
commit c826c5adb0
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@ package org.dimdev.dimdoors.rift.registry;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
@ -111,7 +112,7 @@ public class LinkProperties {
public static class LinkPropertiesBuilder {
private float floatingWeight;
private float entranceWeight;
private Set<Integer> groups;
private Set<Integer> groups = Collections.emptySet();
private int linksRemaining;
private boolean oneWay;

View file

@ -16,7 +16,7 @@ public interface Gateway {
}
default boolean isLocationValid(StructureWorldAccess world, BlockPos pos) {
return this.isBiomeValid(BuiltinRegistries.BIOME.getKey(world.getBiome(pos)).orElseThrow(NullPointerException::new));
return this.isBiomeValid(world.getBiomeKey(pos).orElseThrow(NullPointerException::new));
}
Set<RegistryKey<Biome>> getBiomes();