remove useless quantumObject is not IWorldObject check

This commit is contained in:
JohnCorby 2021-12-28 16:25:15 -08:00
parent 742dea8c42
commit ecdfaa7a1e

View File

@ -226,14 +226,7 @@ namespace QSB.Utility
foreach (var quantumObject in ownedQuantumObjects)
{
if (quantumObject is not IWorldObject qsbObj)
{
WriteLine(4, $"NULL QSBOBJ", Color.red);
}
else
{
WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})");
}
WriteLine(4, $"{quantumObject.Name} ({quantumObject.ObjectId})");
}
}
@ -248,14 +241,7 @@ namespace QSB.Utility
if (qo.IsEnabled)
{
if (qo is not IWorldObject qsbObj)
{
WriteLine(4, $"NULL QSBOBJ", Color.red);
}
else
{
WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})");
}
WriteLine(4, $"{qo.Name} ({qo.ObjectId})");
}
}
#endregion