more cleanup

This commit is contained in:
Mister_Nebula 2021-11-25 15:40:40 +00:00
parent 3860b2aacc
commit f7d0aebc2a

View File

@ -209,8 +209,7 @@ namespace QSB.Utility
foreach (var quantumObject in ownedQuantumObjects)
{
var qsbObj = quantumObject as IWorldObject;
if (qsbObj == null)
if (quantumObject is not IWorldObject qsbObj)
{
WriteLine(4, $"NULL QSBOBJ", Color.red);
}