Fix Biomes not properly copying over ids loaded from the save to the new Dynamic Registry.

This commit is contained in:
LexManos committed 2020-11-01 20:30:38 -08:00
1 parent fed7beab89
commit 7d00d015f3
2 files changed
+17 -4

No files matched your search

@@ -22,6 +22,7 @@ package net.minecraftforge.registries;
import java.util.BitSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
@@ -840,11 +841,12 @@ public class ForgeRegistry<V extends IForgeRegistryEntry<V>> implements IForgeRe
public static class Snapshot
{
public final Map<ResourceLocation, Integer> ids = Maps.newTreeMap();
public final Map<ResourceLocation, ResourceLocation> aliases = Maps.newTreeMap();
private static final Comparator<ResourceLocation> sorter = (a,b) -> a.compareNamespaced(b);
public final Map<ResourceLocation, Integer> ids = Maps.newTreeMap(sorter);
public final Map<ResourceLocation, ResourceLocation> aliases = Maps.newTreeMap(sorter);
public final Set<Integer> blocked = Sets.newTreeSet();
public final Set<ResourceLocation> dummied = Sets.newTreeSet();
public final Map<ResourceLocation, String> overrides = Maps.newTreeMap();
public final Set<ResourceLocation> dummied = Sets.newTreeSet(sorter);
public final Map<ResourceLocation, String> overrides = Maps.newTreeMap(sorter);
private PacketBuffer binary = null;
public CompoundNBT write()