Fix loading of world ID maps for worlds without dummy data. Closes #2477
This commit is contained in:
parent
13a25ee0ba
commit
f77d50b48c
1 changed files with 8 additions and 6 deletions
|
@ -305,8 +305,9 @@ public class FMLContainer extends DummyModContainer implements WorldAccessContai
|
|||
{
|
||||
entry.blocked.add(i);
|
||||
}
|
||||
// save doesn't have dummied list
|
||||
if (!regs.getCompoundTag(key).hasKey("dummied")) return;
|
||||
|
||||
if (regs.getCompoundTag(key).hasKey("dummied")) // Added in 1.8.9 dev, some worlds may not have it.
|
||||
{
|
||||
list = regs.getCompoundTag(key).getTagList("dummied",10);
|
||||
for (int x = 0; x < list.tagCount(); x++)
|
||||
{
|
||||
|
@ -314,6 +315,7 @@ public class FMLContainer extends DummyModContainer implements WorldAccessContai
|
|||
entry.dummied.add(new ResourceLocation(e.getString("K")));
|
||||
}
|
||||
}
|
||||
}
|
||||
failedElements = PersistentRegistryManager.injectSnapshot(snapshot, true, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue