mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 00:52: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)
|
foreach (var quantumObject in ownedQuantumObjects)
|
||||||
{
|
{
|
||||||
if (quantumObject is not IWorldObject qsbObj)
|
WriteLine(4, $"{quantumObject.Name} ({quantumObject.ObjectId})");
|
||||||
{
|
|
||||||
WriteLine(4, $"NULL QSBOBJ", Color.red);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,14 +241,7 @@ namespace QSB.Utility
|
|||||||
|
|
||||||
if (qo.IsEnabled)
|
if (qo.IsEnabled)
|
||||||
{
|
{
|
||||||
if (qo is not IWorldObject qsbObj)
|
WriteLine(4, $"{qo.Name} ({qo.ObjectId})");
|
||||||
{
|
|
||||||
WriteLine(4, $"NULL QSBOBJ", Color.red);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
WriteLine(4, $"{qsbObj.Name} ({qsbObj.ObjectId})");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user