Raise HolidaysRefreshedEvent when holidays are disabled.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using Content.Server.Chat.Managers;
|
using Content.Server.Chat.Managers;
|
||||||
using Content.Server.GameTicking;
|
using Content.Server.GameTicking;
|
||||||
using Content.Shared.CCVar;
|
using Content.Shared.CCVar;
|
||||||
@@ -35,7 +36,10 @@ namespace Content.Server.Holiday
|
|||||||
_currentHolidays.Clear();
|
_currentHolidays.Clear();
|
||||||
|
|
||||||
if (!_enabled)
|
if (!_enabled)
|
||||||
|
{
|
||||||
|
RaiseLocalEvent(new HolidaysRefreshedEvent(Enumerable.Empty<HolidayPrototype>()));
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var now = DateTime.Now;
|
var now = DateTime.Now;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user