From 727240072cdb8e435475a6771ea2328fad2645ac Mon Sep 17 00:00:00 2001 From: hydrant Date: Tue, 18 Dec 2018 22:26:07 +0100 Subject: [PATCH] Fixed InventoryManager.LoadItems --- Server/Managers/InventoryManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Managers/InventoryManager.cs b/Server/Managers/InventoryManager.cs index a494b7ce..600b8bf9 100644 --- a/Server/Managers/InventoryManager.cs +++ b/Server/Managers/InventoryManager.cs @@ -32,7 +32,7 @@ namespace reallife_gamemode.Server.Managers Type[] allTypes = Assembly.GetExecutingAssembly().GetTypes(); foreach (Type item in allTypes) { - if (item.GetInterfaces().Contains((typeof(IItem)))) + if (item.GetInterfaces().Contains((typeof(IItem))) && !item.IsAbstract) { NAPI.Util.ConsoleOutput($"Loading Item {item.Name}"); if (Activator.CreateInstance(item) is IItem o)