Skip to content

Commit

Permalink
Merge remote-tracking branch 'Minecraft-TA/itemlist-iterator' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Dream-Master committed Aug 20, 2024
2 parents c253bdd + c7cd86a commit bfbb851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/appeng/util/item/ItemList.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public int size() {
public Iterator<IAEItemStack> iterator() {
return new MeaningfulItemIterator<>(new Iterator<>() {

private final Iterator<IAEItemStack> i = ItemList.this.setRecords.iterator();
private final Iterator<IAEItemStack> i = ItemList.this.records.values().iterator();
private IAEItemStack next = null;

@Override
Expand All @@ -195,7 +195,7 @@ public IAEItemStack next() {
@Override
public void remove() {
i.remove();
ItemList.this.records.remove(next);
ItemList.this.setRecords.remove(next);
}
});
}
Expand Down

0 comments on commit bfbb851

Please sign in to comment.