mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/exe/print.rs')
-rw-r--r--src/exe/print.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exe/print.rs b/src/exe/print.rs
index d1b79c5..525bf9a 100644
--- a/src/exe/print.rs
+++ b/src/exe/print.rs
@@ -156,17 +156,17 @@ pub fn main(mut args: Args, arg_off: usize) {
}
pub fn print_schematic(s: &Schematic) {
- if let Some(name) = s.get_tags().get("name") {
+ if let Some(name) = s.tags.get("name") {
if !name.is_empty() {
println!("Name: {name}");
}
}
- if let Some(desc) = s.get_tags().get("description") {
+ if let Some(desc) = s.tags.get("description") {
if !desc.is_empty() {
println!("Desc: {desc}");
}
}
- if let Some(labels) = s.get_tags().get("labels") {
+ if let Some(labels) = s.tags.get("labels") {
if !labels.is_empty() && labels != "[]" {
println!("Tags: {:?}", labels);
}