private void OnReload(ReloadEventArgs args) { Settings = SupplySettings.Read(PVP_CONFIG_PATH); if (Settings == null) { Console.WriteLine("Config is null."); Settings = new SupplySettings(new List <SupplySet>(), new List <MapData>()); } }
public AutoSupplyMain(Main game) : base(game) { Settings = SupplySettings.Read(PVP_CONFIG_PATH); if (Settings == null) { Console.WriteLine("Config is null."); Settings = new SupplySettings(new List <SupplySet>(), new List <MapData>()); } Instance = this; }