Skip to content

Commit

Permalink
Expose cache in IngredientCollectionDiffManager
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 22, 2024
1 parent 6599704 commit 29f9d1e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ public IngredientCollectionDiff<T, M> onChange(Iterator<T> newInstances) {
return diff;
}

public IngredientCollectionPrototypeMap<T, M> getInstancesCache() {
if (this.instancesCache == null) {
this.instancesCache = new IngredientCollectionPrototypeMap<>(this.ingredientComponent, true);
}
return this.instancesCache;
}
}

0 comments on commit 29f9d1e

Please sign in to comment.