Exemplo n.º 1
0
        public override void Load(TagCompound tag)
        {
            NetworkCollection.EnsureNetworkIsInitialized();

            if (tag.ContainsKey("networks"))
            {
                NetworkCollection.Load(tag.GetCompound("networks"));
            }

            if (tag.GetList <Point16>("mufflers") is List <Point16> list)
            {
                MachineMufflerTile.mufflers = list;
            }
        }
Exemplo n.º 2
0
 public override void PreUpdate()
 {
     NetworkCollection.EnsureNetworkIsInitialized();
 }