From b6e2e14e67c71a7b8473ea56e3caaf33fd50905d Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 12 Dec 2025 09:05:17 -0300 Subject: move update_fluid_on_eyes from Update to GameTick --- azalea-world/src/container.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index 3e167085..c2788198 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -40,8 +40,9 @@ impl InstanceContainer { InstanceContainer::default() } - /// Get a world from the container. Returns `None` if none of the clients - /// are in this world. + /// Get an instance (aka world) from the container. + /// + /// Returns `None` if none of the clients are in this instance. pub fn get(&self, name: &InstanceName) -> Option>> { self.instances.get(name).and_then(|world| world.upgrade()) } @@ -92,6 +93,6 @@ impl InstanceContainer { /// /// If two entities share the same instance name, we assume they're in the /// same instance. -#[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut)] +#[derive(Component, Clone, Debug, PartialEq, Deref, DerefMut, Hash, Eq)] #[doc(alias("worldname", "world name"))] pub struct InstanceName(pub Identifier); -- cgit v1.2.3