remove unused name field in Datapack struct
This commit is contained in:
		
							parent
							
								
									edcf80d389
								
							
						
					
					
						commit
						a3474acec1
					
				|  | @ -20,7 +20,6 @@ use crate::{ | ||||||
| #[derive(Debug, Clone)] | #[derive(Debug, Clone)] | ||||||
| pub struct Datapack { | pub struct Datapack { | ||||||
|     // TODO: Support filter and overlays
 |     // TODO: Support filter and overlays
 | ||||||
|     name: String, |  | ||||||
|     description: String, |     description: String, | ||||||
|     pack_format: u8, |     pack_format: u8, | ||||||
|     supported_formats: Option<RangeInclusive<u8>>, |     supported_formats: Option<RangeInclusive<u8>>, | ||||||
|  | @ -33,9 +32,8 @@ pub struct Datapack { | ||||||
| impl Datapack { | impl Datapack { | ||||||
|     /// Create a new Minecraft datapack.
 |     /// Create a new Minecraft datapack.
 | ||||||
|     #[must_use] |     #[must_use] | ||||||
|     pub fn new(name: &str, pack_format: u8) -> Self { |     pub fn new(pack_format: u8) -> Self { | ||||||
|         Self { |         Self { | ||||||
|             name: name.to_string(), |  | ||||||
|             description: String::from("A Minecraft datapack created with shulkerbox"), |             description: String::from("A Minecraft datapack created with shulkerbox"), | ||||||
|             pack_format, |             pack_format, | ||||||
|             supported_formats: None, |             supported_formats: None, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue