fix green bug

This commit is contained in:
2026-02-27 08:49:48 -08:00
parent a4c4f20bad
commit 299a2b8051
6 changed files with 60 additions and 63 deletions

View File

@@ -105,10 +105,10 @@ pub struct PlaybackHead{
#[wasm_bindgen]
impl PlaybackHead{
#[wasm_bindgen(constructor)]
pub fn new(time:f64)->Result<Self,JsValue>{
pub fn new(bot:&CompleteBot,time:f64)->Result<Self,JsValue>{
let time=time::from_float(time).unwrap();
Ok(Self{
head:head::PlaybackHead::new(time),
head:head::PlaybackHead::new(&bot.bot,time),
})
}
#[wasm_bindgen]