fix: extract pure mat id

This commit is contained in:
Pakin 2026-04-17 10:33:31 +07:00
parent 38a1510458
commit 6219459e3e

View file

@ -1858,7 +1858,7 @@ impl MaterialSetting {
let check_if_start_with_cc = mat_num > MATERIAL_INTER_GUARD as i64;
if check_if_start_with_cc {
mat_num - (cc * MATERIAL_INTER_GUARD as i64)
mat_num - (cc * 10000 as i64)
} else {
mat_num
}
@ -1866,7 +1866,7 @@ impl MaterialSetting {
self.id.clone().as_i64().expect("not a number")
};
println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
// println!("get def mat: {:?} # {pure_mat_id}", country_code.clone());
return match pure_mat_id {
8000 => MaterialType::Brew,