mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix Biomes not properly copying over ids loaded from the save to the new Dynamic Registry.
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user