Fix overrides not being read from the server registry snapshot (#4224)

This commit is contained in:
Marvin Rösch authored and LexManos committed 2017-07-26 18:47:55 -05:00
1 parent e59b979e1b
commit 434f95c66e
3 files changed
+17 -3

No files matched your search

@@ -130,6 +130,7 @@ enum FMLHandshakeClientState implements IHandshakeState<FMLHandshakeClientState>
ForgeRegistry.Snapshot entry = new ForgeRegistry.Snapshot();
entry.ids.putAll(pkt.getIdMap());
entry.dummied.addAll(pkt.getDummied());
entry.overrides.putAll(pkt.getOverrides());
snap.put(pkt.getName(), entry);
if (pkt.hasMore())
@@ -261,6 +261,11 @@ public abstract class FMLHandshakeMessage {
return dummied;
}
public Map<ResourceLocation, String> getOverrides()
{
return overrides;
}
public ResourceLocation getName()
{
return this.name;