From fbaae39cdf9c5a7a34005a51a37b85f7cdd5ea00 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 13 Nov 2025 12:34:47 +0930 Subject: rename ResourceLocation to Identifier ahead of mojmap changes --- azalea-world/src/container.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index 279f3061..ff79ec81 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -3,7 +3,7 @@ use std::{ sync::{Arc, Weak}, }; -use azalea_core::{registry_holder::RegistryHolder, resource_location::ResourceLocation}; +use azalea_core::{identifier::Identifier, registry_holder::RegistryHolder}; use bevy_ecs::{component::Component, resource::Resource}; use derive_more::{Deref, DerefMut}; use nohash_hasher::IntMap; @@ -31,7 +31,7 @@ pub struct InstanceContainer { // telling them apart. We hope most servers are nice and don't do that though. It's only an // issue when there's multiple clients with the same WorldContainer in different worlds // anyways. - pub instances: FxHashMap>>, + pub instances: FxHashMap>>, } impl InstanceContainer { @@ -50,7 +50,7 @@ impl InstanceContainer { #[must_use = "the world will be immediately forgotten if unused"] pub fn get_or_insert( &mut self, - name: ResourceLocation, + name: Identifier, height: u32, min_y: i32, default_registries: &RegistryHolder, @@ -93,4 +93,4 @@ impl InstanceContainer { /// same instance. #[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut)] #[doc(alias("worldname", "world name"))] -pub struct InstanceName(pub ResourceLocation); +pub struct InstanceName(pub Identifier); -- cgit v1.2.3