Esempio n. 1
0
        public override void LoadLegacy(BinaryReader reader)
        {
            string modName   = reader.ReadString();
            bool   hasGlobal = false;

            if (modName.Length == 0)
            {
                hasGlobal = true;
                modName   = reader.ReadString();
            }
            Load(new TagCompound {
                ["mod"]             = modName,
                ["name"]            = reader.ReadString(),
                ["hasGlobalSaving"] = hasGlobal,
                ["legacyData"]      = ItemIO.LegacyModData(int.MaxValue, reader, hasGlobal)
            });
        }