diff --git a/server/src/lib.rs b/server/src/lib.rs index da009757bc..ddd934cb10 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -617,13 +617,14 @@ impl Server { .map(|(entity, _, _)| entity); nearest_tameable } { - let _ = state - .ecs() - .write_storage::() - .insert( - tameable_entity, - comp::Alignment::Owned(entity), - ); + let _ = state.ecs().write_storage().insert( + tameable_entity, + comp::Alignment::Owned(entity), + ); + let _ = state.ecs().write_storage().insert( + tameable_entity, + comp::Agent::default(), + ); false } else { true