mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix loading of world ID maps for worlds without dummy data. Closes #2477
This commit is contained in:
1 parent
13a25ee0ba
commit
f77d50b48c
1 file changed
+8
-6
@@ -305,13 +305,15 @@ public class FMLContainer extends DummyModContainer implements WorldAccessContai
|
||||
{
|
||||
entry.blocked.add(i);
|
||||
}
|
||||
// save doesn't have dummied list
|
||||
if (!regs.getCompoundTag(key).hasKey("dummied")) return;
|
||||
list = regs.getCompoundTag(key).getTagList("dummied",10);
|
||||
for (int x = 0; x < list.tagCount(); x++)
|
||||
|
||||
if (regs.getCompoundTag(key).hasKey("dummied")) // Added in 1.8.9 dev, some worlds may not have it.
|
||||
{
|
||||
NBTTagCompound e = list.getCompoundTagAt(x);
|
||||
entry.dummied.add(new ResourceLocation(e.getString("K")));
|
||||
list = regs.getCompoundTag(key).getTagList("dummied",10);
|
||||
for (int x = 0; x < list.tagCount(); x++)
|
||||
{
|
||||
NBTTagCompound e = list.getCompoundTagAt(x);
|
||||
entry.dummied.add(new ResourceLocation(e.getString("K")));
|
||||
}
|
||||
}
|
||||
}
|
||||
failedElements = PersistentRegistryManager.injectSnapshot(snapshot, true, true);
|
||||
|
||||
Reference in new issue
Block a user