Fix old 1.7 worlds with broken ID mappings

This commit is contained in:
Player committed 2014-03-30 17:17:54 +02:00
1 parent 7325aa5033
commit eb29d651eb
2 files changed
+80

No files matched your search

@@ -216,6 +216,14 @@ public class FMLContainer extends DummyModContainer implements WorldAccessContai
NBTTagCompound dataTag = list.func_150305_b(i);
dataList.put(dataTag.func_74779_i("K"), dataTag.func_74762_e("V"));
}
if (!tag.func_74764_b("BlockedItemIds")) // no blocked id info -> old 1.7 save
{
// old 1.7 save potentially affected by the registry mapping bug
// fix the ids the best we can...
GameData.fixBrokenIds(dataList);
}
// blocked ids
int[] blockedIds = tag.func_74759_k("BlockedItemIds");
// block aliases