Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop

This commit is contained in:
VegaZ
2018-12-18 22:31:17 +01:00

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)