mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
remove useless quantumObject is not IWorldObject check
This commit is contained in:
parent
742dea8c42
commit
ecdfaa7a1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user