Fixed InventoryManager.LoadItems

This commit is contained in:
hydrant
2018-12-18 22:26:07 +01:00
parent 402b7d4f41
commit 727240072c

View File

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