Fix derpage when loading a 1.8 world, with persistent state being entirely ignored in that case.
This commit is contained in:
parent
c6d64cd94a
commit
0632f2aadf
|
@ -264,10 +264,12 @@ public class FMLContainer extends DummyModContainer implements WorldAccessContai
|
||||||
for (String key : regs.getKeySet())
|
for (String key : regs.getKeySet())
|
||||||
{
|
{
|
||||||
PersistentRegistryManager.GameDataSnapshot.Entry entry = new PersistentRegistryManager.GameDataSnapshot.Entry();
|
PersistentRegistryManager.GameDataSnapshot.Entry entry = new PersistentRegistryManager.GameDataSnapshot.Entry();
|
||||||
if ("fml:blocks".equals(key)) key = "minecraft:blocks";
|
ResourceLocation entryLoc;
|
||||||
if ("fml:items".equals(key)) key = "minecraft:items";
|
if ("fml:blocks".equals(key)) entryLoc = PersistentRegistryManager.BLOCKS;
|
||||||
if ("fmlgr:villagerprofessions".equals(key)) key = "minecraft:villagerprofessions";
|
else if ("fml:items".equals(key)) entryLoc = PersistentRegistryManager.ITEMS;
|
||||||
snapshot.entries.put(new ResourceLocation(key), entry);
|
else if ("fmlgr:villagerprofessions".equals(key)) entryLoc = new ResourceLocation("minecraft:villagerprofessions");
|
||||||
|
else entryLoc = new ResourceLocation(key);
|
||||||
|
snapshot.entries.put(entryLoc, entry);
|
||||||
|
|
||||||
NBTTagList list = regs.getCompoundTag(key).getTagList("ids", 10);
|
NBTTagList list = regs.getCompoundTag(key).getTagList("ids", 10);
|
||||||
for (int x = 0; x < list.tagCount(); x++)
|
for (int x = 0; x < list.tagCount(); x++)
|
||||||
|
|
Loading…
Reference in New Issue