diff --git a/src/main.rs b/src/main.rs index 2c5274f..b2662d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1306,9 +1306,9 @@ async fn script_node(search_name:&str,mut file:FileWithName,hint:ScriptHint)->AR (Some("ModuleScript"),_) |(None,ScriptHint::ModuleScript)=>CompileClass::ModuleScript(script_with_overrides.source), (Some("LocalScript"),_) - |(None,ScriptHint::Script)=>CompileClass::LocalScript(script_with_overrides.source), + |(None,ScriptHint::LocalScript)=>CompileClass::LocalScript(script_with_overrides.source), (Some("Script"),_) - |(None,ScriptHint::LocalScript)=>CompileClass::Script(script_with_overrides.source), + |(None,ScriptHint::Script)=>CompileClass::Script(script_with_overrides.source), other=>Err(anyhow::Error::msg(format!("Invalid hint or class {other:?}")))?, }, })