Skip to content

Commit

Permalink
Fix non-fallback traits not being included in materials
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Dec 16, 2022
1 parent 473735c commit 1f13cd2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public MaterialTraits build(Map<MaterialStatsId,MaterialStatsId> fallbacks) {
} else {
// add in fallbacks now so no hit to lookup times
ImmutableMap.Builder<MaterialStatsId,List<ModifierEntry>> builder = ImmutableMap.builder();
builder.putAll(this.traitsPerStats);
for (Entry<MaterialStatsId,MaterialStatsId> fallback : fallbacks.entrySet()) {
MaterialStatsId statType = fallback.getKey();
if (!this.traitsPerStats.containsKey(statType)) {
Expand Down

0 comments on commit 1f13cd2

Please sign in to comment.