I've replicated exactly what Custom Resource Spawner does to remove it's resource nodes, but my console still gets spammed with:
"Calling kill - but already IsDestroyed!? orebonus_generic[0]
if(entity OreResourceEntity)
{
(entity as OreResourceEntity)._hotSpot.Kill(BaseNetworkable.DestroyMode.None);
}
entity.Kill();I even tried checking if the entity is destroyed before calling kill. I'm unsure why his plugin doesn't spam console but mine does.