tirbofish/dropbear · diff
removed legacy redback-runtime
Signature present but could not be verified.
Unverified
@@ -1,3 +0,0 @@ -[submodule "redback-runtime"] - path = redback-runtime - url = https://github.com/4tkbytes/redback-runtime @@ -21,7 +21,7 @@ impl CameraComponent { pub fn new() -> Self { Self { speed: 5.0, - sensitivity: 0.002, + sensitivity: 0.1, fov_y: 60.0, camera_type: CameraType::Normal, starting_camera: false, @@ -78,10 +78,15 @@ impl ScriptManager { lib_path: None, }; - let jvm = JavaContext::new()?; - result.jvm = Some(jvm); - result.jvm_created = true; - log::debug!("Created new JVM instance"); + + #[cfg(feature = "jvm")] + // using this feature is automatically supported by the "editor" feature flag + { // JavaContext will only be created if developer explicitly specifies. + let jvm = JavaContext::new()?; + result.jvm = Some(jvm); + result.jvm_created = true; + log::debug!("Created new JVM instance"); + } Ok(result) }
Large diffs are not rendered by default. Showing the first 50 of 52 lines. Show full diff