Dont use BuiltinRegistries
This commit is contained in:
parent
81942640df
commit
c826c5adb0
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue