From e6fe118201d5eea8a681af5bff78a7f7e09530ab Mon Sep 17 00:00:00 2001 From: endernon Date: Fri, 3 Jan 2025 23:03:09 +0000 Subject: [PATCH] fix a debug check --- config_crafted.json | 2 +- src/encode.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config_crafted.json b/config_crafted.json index 46cfda1..9d2c0a1 100644 --- a/config_crafted.json +++ b/config_crafted.json @@ -4,7 +4,7 @@ "There are also some values you cannot increase beyond a limit." ], "name":"Singularity", - "item_type": "cgear", + "item_type": "craftedgear", "crafted_type": "potion", "shiny": { "key": "playersKilled", diff --git a/src/encode.rs b/src/encode.rs index ab72476..31d49f8 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -14,7 +14,9 @@ pub fn encode_startdata(general_params: &mut FuncParams) { .unwrap(); } pub fn encode_typedata(general_params: &mut FuncParams, item_type_deser: ItemTypeDeser) { - println!("Encoding TypeData: {:?}", item_type_deser); + if *general_params.fr_debug_mode { + println!("Encoding TypeData: {:?}", item_type_deser); + } // ENCODE: TypeData TypeData(ItemType::from(item_type_deser)) .encode(general_params.fr_ver, general_params.fr_out)