From de61a01703860fc448611e496ff0b579bf3b2db5 Mon Sep 17 00:00:00 2001 From: Visne <39844191+Visne@users.noreply.github.com> Date: Thu, 20 Aug 2020 16:59:59 +0200 Subject: [PATCH] Fix HasGameRule bug (#1819) --- Content.Server/GameTicking/GameTicker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameTicking/GameTicker.cs b/Content.Server/GameTicking/GameTicker.cs index 34d40c8df3..62d6dfa1a6 100644 --- a/Content.Server/GameTicking/GameTicker.cs +++ b/Content.Server/GameTicking/GameTicker.cs @@ -412,7 +412,7 @@ namespace Content.Server.GameTicking public bool HasGameRule(Type t) { - if (t == null || !t.IsAssignableFrom(typeof(GameRule))) + if (t == null || !typeof(GameRule).IsAssignableFrom(t)) return false; foreach (var rule in _gameRules)