aboutsummaryrefslogtreecommitdiff
path: root/azalea-core/src/checksum.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-13 12:34:47 +0930
committermat <git@matdoes.dev>2025-11-13 07:04:52 +0400
commitfbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 (patch)
tree3126fb34a4e0ac979a1103a8227a2b9a136c1553 /azalea-core/src/checksum.rs
parenta4312599f7c04709a92b7be238dcf577bafbb14f (diff)
downloadazalea-drasl-fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00.tar.xz
rename ResourceLocation to Identifier ahead of mojmap changes
Diffstat (limited to 'azalea-core/src/checksum.rs')
-rw-r--r--azalea-core/src/checksum.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-core/src/checksum.rs b/azalea-core/src/checksum.rs
index 4661d171..df94d58e 100644
--- a/azalea-core/src/checksum.rs
+++ b/azalea-core/src/checksum.rs
@@ -6,7 +6,7 @@ use serde::{Serialize, ser};
use thiserror::Error;
use tracing::error;
-use crate::{registry_holder::RegistryHolder, resource_location::ResourceLocation};
+use crate::{identifier::Identifier, registry_holder::RegistryHolder};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default, AzBuf)]
pub struct Checksum(pub u32);
@@ -200,7 +200,7 @@ impl<'a, 'r> ser::Serializer for ChecksumSerializer<'a, 'r> {
let value = self
.registries
.map
- .get(&ResourceLocation::from(name))
+ .get(&Identifier::from(name))
.and_then(|r| r.get_index(variant_index as usize))
.map(|r| r.0.to_string())
.unwrap_or_default();