diff --git a/mod/Jailbreak.SpecialDay/SpecialDays/HideAndSeekDay.cs b/mod/Jailbreak.SpecialDay/SpecialDays/HideAndSeekDay.cs index df7887a7..627e66ad 100644 --- a/mod/Jailbreak.SpecialDay/SpecialDays/HideAndSeekDay.cs +++ b/mod/Jailbreak.SpecialDay/SpecialDays/HideAndSeekDay.cs @@ -166,8 +166,8 @@ public HnsSettings() { cachedGuardWeapons = CV_GUARD_WEAPONS.Value.Split(",").ToHashSet(); cachedPrisonerWeapons = CV_PRISONER_WEAPONS.Value.Split(",").ToHashSet(); - if (cachedGuardWeapons.Count == 0) cachedGuardWeapons = null; - if (cachedPrisonerWeapons.Count == 0) cachedPrisonerWeapons = null; + if (CV_GUARD_WEAPONS.Value.Length == 0) cachedGuardWeapons = null; + if (CV_PRISONER_WEAPONS.Value.Length == 0) cachedPrisonerWeapons = null; } public override int InitialHealth(CCSPlayerController player) { diff --git a/mod/Jailbreak.SpecialDay/SpecialDays/SpeedrunDay.cs b/mod/Jailbreak.SpecialDay/SpecialDays/SpeedrunDay.cs index 799a14b3..2e0a0c4d 100644 --- a/mod/Jailbreak.SpecialDay/SpecialDays/SpeedrunDay.cs +++ b/mod/Jailbreak.SpecialDay/SpecialDays/SpeedrunDay.cs @@ -695,6 +695,8 @@ private void endRound() { if (CV_WINNER_DAMAGEABLE.Value) EnableDamage(winner); + Plugin.DeregisterEventHandler(OnPickup); + foreach (var weapon in CV_LOSERS_WEAPONS.Value.Split(',')) foreach (var loser in losers) loser.GiveNamedItem(weapon); @@ -703,7 +705,6 @@ private void endRound() { winner.GiveNamedItem(weapon); Plugin.RemoveListener(checkFinishers); - Plugin.DeregisterEventHandler(OnPickup); RoundUtil.SetTimeRemaining(Math.Min(timeToSet, CV_WIN_TIME_MAX.Value)); Server.ExecuteCommand("mp_ignore_round_win_conditions 0"); return;