Skip to content
This repository has been archived by the owner on May 25, 2024. It is now read-only.

Commit

Permalink
Fix ConcurrentModificationException (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
DianeXD authored Jul 29, 2022
1 parent 56d7f40 commit 24c53b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ private AspectList getEssentia(ItemStack itemStack, int amount) {

private void fillEssentiaOutputHatch() {
for (EssentiaOutputHatch outputHatch : this.mEssentiaOutputHatches) {
for (Map.Entry<Aspect, Integer> entry : this.mOutputAspects.aspects.entrySet()) {
for (Map.Entry<Aspect, Integer> entry :
this.mOutputAspects.copy().aspects.entrySet()) {
Aspect aspect = entry.getKey();
int amount = entry.getValue();
this.mOutputAspects.remove(aspect, outputHatch.addEssentia(aspect, amount, null));
Expand Down

0 comments on commit 24c53b5

Please sign in to comment.