Fix registry snapshots not reading aliases correctly. Closes #6298

This commit is contained in:
LexManos 2019-11-05 11:10:03 -08:00
parent 1e1644f6d4
commit b8ea220925

View file

@ -880,7 +880,7 @@ public class ForgeRegistry<V extends IForgeRegistryEntry<V>> implements IForgeRe
list.forEach(e -> list.forEach(e ->
{ {
CompoundNBT comp = (CompoundNBT)e; CompoundNBT comp = (CompoundNBT)e;
ret.overrides.put(new ResourceLocation(comp.getString("K")), comp.getString("V")); ret.aliases.put(new ResourceLocation(comp.getString("K")), new ResourceLocation(comp.getString("V")));
}); });
list = nbt.getList("overrides", 10); list = nbt.getList("overrides", 10);