From c9ce59757395012c27ce3b70590d9506d47da215 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 19 Jul 2021 21:50:29 -0700 Subject: [PATCH] fix(core): Fixes bad check for verifying types (#662) --- Projects/Server/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Server/Main.cs b/Projects/Server/Main.cs index 057653992..f4a261a9c 100644 --- a/Projects/Server/Main.cs +++ b/Projects/Server/Main.cs @@ -557,7 +557,7 @@ namespace Server { Interlocked.Increment(ref _itemCount); } - else if (!type.IsSubclassOf(typeof(Mobile))) + else if (type.IsSubclassOf(typeof(Mobile))) { Interlocked.Increment(ref _mobileCount); }