fix biome delegate loading

This commit is contained in:
dfsek
2021-12-07 21:05:54 -07:00
parent ac9ab133a9
commit 81900d80b5
@@ -21,7 +21,7 @@ public class BiomeDelegateLoader implements TypeLoader<BiomeDelegate> {
@Override @Override
public BiomeDelegate load(@NotNull AnnotatedType t, @NotNull Object c, @NotNull ConfigLoader loader) throws LoadException { 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 return biomeRegistry
.get((String) c) .get((String) c)
.map(BiomeDelegate::from) .map(BiomeDelegate::from)