private void TimeEvents_TimeOfDayChanged(object sender, EventArgsIntChanged e) { if (_gameLoaded && _config.EnableMod) { try { _buildingProcessor.ProcessAnimalBuildings(); _buildingProcessor.ProcessMachineBuildings(_machineBuildingConfigs); _machinesProcessor.ProcessMachines(); } catch (Exception ex) { Monitor.Log($"an error occured with the automation mod: {ex}", LogLevel.Error); _machinesProcessor.DailyReset(); } } }