diff --git a/Cargo.toml b/Cargo.toml index e4173ff..baf6d2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ mlua = { version = "0.9.7", features = ["lua54", "vendored"], optional = true } path-absolutize = "3.1.1" pathdiff = "0.2.1" serde = { version = "1.0.197", features = ["derive", "rc"], optional = true } -shulkerbox = { git = "https://github.com/moritz-hoelting/shulkerbox", default-features = false, optional = true, rev = "aff342a64a94981af942223345b5a5f105212957" } +shulkerbox = { git = "https://github.com/moritz-hoelting/shulkerbox", default-features = false, optional = true, rev = "4ca0505e357aa7427657d6286f8a1b77eb7e63c6" } strsim = "0.11.1" strum = { version = "0.26.2", features = ["derive"] } strum_macros = "0.26.2" diff --git a/src/syntax/syntax_tree/declaration.rs b/src/syntax/syntax_tree/declaration.rs index 72531c1..a7e0c22 100644 --- a/src/syntax/syntax_tree/declaration.rs +++ b/src/syntax/syntax_tree/declaration.rs @@ -278,15 +278,15 @@ impl Tag { self.of_type .as_ref() - .map_or(TagType::Functions, |(_, tag_type)| { + .map_or(TagType::Function, |(_, tag_type)| { match tag_type.str_content().as_ref() { - "function" => TagType::Functions, - "block" => TagType::Blocks, - "entity_type" => TagType::Entities, - "fluid" => TagType::Fluids, - "game_event" => TagType::GameEvents, - "item" => TagType::Items, - other => TagType::Others(other.to_string()), + "function" => TagType::Function, + "block" => TagType::Block, + "entity_type" => TagType::Entity, + "fluid" => TagType::Fluid, + "game_event" => TagType::GameEvent, + "item" => TagType::Item, + other => TagType::Other(other.to_string()), } }) }