Merge branch 'crabman/precision-ui-fix' into 'master'

fix stat UI bug for modular components while trading

See merge request veloren/veloren!4196
This commit is contained in:
Christof Petig 2023-11-27 19:25:41 +00:00
commit 256afc1960

View File

@ -118,7 +118,7 @@ pub fn stats_count(item: &dyn ItemDesc, msm: &MaterialStatManifest) -> usize {
Effects::Any(_) | Effects::One(_) => 1,
Effects::All(effects) => effects.len(),
},
ItemKind::ModularComponent { .. } => 7,
ItemKind::ModularComponent { .. } => 6,
_ => 0,
};
if item.has_durability() {