Enable nullability in Content.Server (#3685)
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Content.Server.Holiday
|
||||
|
||||
public bool IsCurrentlyHoliday(string holiday)
|
||||
{
|
||||
if (!_prototypeManager.TryIndex(holiday, out HolidayPrototype prototype))
|
||||
if (!_prototypeManager.TryIndex(holiday, out HolidayPrototype? prototype))
|
||||
return false;
|
||||
|
||||
return _currentHolidays.Contains(prototype);
|
||||
|
||||
Reference in New Issue
Block a user