diff --git a/src/rbx.rs b/src/rbx.rs index 00c0714..8c41b20 100644 --- a/src/rbx.rs +++ b/src/rbx.rs @@ -197,7 +197,7 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana gameplay_modes::ModeId::MAIN, gameplay_modes::ModeUpdate::element( model_id, - gameplay_modes::StageElement::new(gameplay_modes::StageId::FIRST,false,gameplay_modes::StageElementBehaviour::Platform),//roblox does not know which stage the platform belongs to + gameplay_modes::StageElement::new(gameplay_modes::StageId::FIRST,false,gameplay_modes::StageElementBehaviour::Platform,None),//roblox does not know which stage the platform belongs to ), ); }, @@ -255,6 +255,7 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana "Platform"=>gameplay_modes::StageElementBehaviour::Platform, _=>panic!("regex1[2] messed up bad"), }, + None ); modes_builder.push_mode_update( gameplay_modes::ModeId::MAIN, @@ -268,10 +269,15 @@ fn get_attributes(object:&rbx_dom_weak::Instance,can_collide:bool,velocity:Plana match &captures[1]{ "Jump"=>modes_builder.push_mode_update( gameplay_modes::ModeId::MAIN, - gameplay_modes::ModeUpdate::jump_limit( + gameplay_modes::ModeUpdate::element( model_id, //jump_limit: - captures[2].parse::().unwrap() + gameplay_modes::StageElement::new( + gameplay_modes::StageId::FIRST, + false, + gameplay_modes::StageElementBehaviour::Check, + Some(captures[2].parse::().unwrap()) + ) ), ), "WormholeIn"=>{