fix biome delegate loading

This commit is contained in:
dfsek
2021-12-07 21:05:54 -07:00
parent ac9ab133a9
commit 81900d80b5

View File

@@ -21,7 +21,7 @@ public class BiomeDelegateLoader implements TypeLoader<BiomeDelegate> {
@Override
public BiomeDelegate load(@NotNull AnnotatedType t, @NotNull Object c, @NotNull ConfigLoader loader) throws LoadException {
if(c == "SELF") return BiomeDelegate.self();
if(c.equals("SELF")) return BiomeDelegate.self();
return biomeRegistry
.get((String) c)
.map(BiomeDelegate::from)