kitgit

tirbofish/dropbear · commit

b33c441dc10da23909b5fc3d7ea4c264ba6dc479

fix: fix up some errors relating to scripting module

Unverified

Thribhu K <4tkbytes@pm.me> · 2026-02-14 11:42

view full diff

diff --git a/crates/dropbear-engine/src/asset.rs b/crates/dropbear-engine/src/asset.rs
index 411e870..fc1eb9f 100644
--- a/crates/dropbear-engine/src/asset.rs
+++ b/crates/dropbear-engine/src/asset.rs
@@ -30,7 +30,7 @@ impl<T> Handle<T> {
     /// Creates a null handle, for when there is no way to uniquely identify a hash (such as a viewport texture).
     ///
     /// # Safety
-    /// You will want to watch out, as adding this onto the asset registry with a type
+    /// You will want to watch out, as adding this onto the asset_old registry with a type
     /// where there already is a null handle item, it will be overwritten and data
     /// will not be saved. It is the reason why you will want to consider using the [Self::is_null]
     /// function to verify if the storage of the type has gone through correctly.
@@ -79,14 +79,14 @@ impl AssetRegistry {
         hasher.finish()
     }
 
-    /// Checks if the asset registry contains a handle with the given hash.
+    /// Checks if the asset_old registry contains a handle with the given hash.
     ///
     /// It will check all different types, so it does not point out specifically where.
     pub fn contains_hash(&self, hash: u64) -> bool {
         self.textures.contains_key(&hash) || self.models.contains_key(&hash)
     }
 
-    /// Checks if the asset registry contains a handle with the given string label.
+    /// Checks if the asset_old registry contains a handle with the given string label.
     ///
     /// It will check all different types, so it does not point out specifically where.
     pub fn contains_label(&self, label: &str) -> bool {
@@ -126,7 +126,7 @@ impl AssetRegistry {
         self.texture_labels.remove(label);
     }
 
-    /// Updates the asset server by inserting the texture provided at the location of the handle,
+    /// Updates the asset_old server by inserting the texture provided at the location of the handle,
     /// and removing the old texture (by returning it back to you).
     pub fn update_texture(&mut self, handle: Handle<Texture>, texture: Texture) -> Option<Texture> {
         self.textures.insert(handle.id, texture)
diff --git a/crates/dropbear-engine/src/utils.rs b/crates/dropbear-engine/src/utils.rs
index 8a5acb9..95f8531 100644
--- a/crates/dropbear-engine/src/utils.rs
+++ b/crates/dropbear-engine/src/utils.rs
@@ -181,7 +181,7 @@ impl ResourceReference {
         })
     }
 
-    /// Returns the canonical euca URI for this reference if it points to a file asset.
+    /// Returns the canonical euca URI for this reference if it points to a file asset_old.
     pub fn as_uri(&self) -> Option<&str> {

Large diffs are not rendered by default. Showing the first 50 of 1208 lines. Show full diff