Fix HasGameRule bug (#1819)

This commit is contained in:
Visne
2020-08-20 16:59:59 +02:00
committed by GitHub
parent ed1a96e536
commit de61a01703

View File

@@ -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)