private void GameEvents_SecondTick(object sender, EventArgs e) { if (Game1.activeClickableMenu == null) { config = new ACAConfig().InitializeConfig(BaseConfigPath); if (chests.Count > 0) { chests.Clear(); } } }
public override void Entry(params object[] objects) { #if DEBUG Log.AsyncR("DEBUGGING!!!!!!!"); #endif config = new ACAConfig().InitializeConfig(BaseConfigPath); chests = new Dictionary <string, List <Chest> >(); ControlEvents.KeyPressed += ControlEvents_KeyPressed; ControlEvents.ControllerButtonPressed += ControlEvents_ButtonPressed; ControlEvents.ControllerTriggerPressed += ControlEvents_TriggerPressed; GameEvents.OneSecondTick += GameEvents_SecondTick; }