Revert "synchronizedList must be in a synchronized block when iterating"
This reverts commit 1f12fc5e91.
This commit is contained in:
@@ -70,6 +70,7 @@ public class ItemRepo {
|
||||
|
||||
public IAEItemStack getReferenceItem(int idx) {
|
||||
idx += this.src.getCurrentScroll() * this.rowSize;
|
||||
|
||||
if (idx >= this.view.size()) {
|
||||
return null;
|
||||
}
|
||||
@@ -218,8 +219,8 @@ public class ItemRepo {
|
||||
|
||||
return view;
|
||||
}).thenAcceptAsync(view -> {
|
||||
this.updated = true;
|
||||
this.asyncUpdatedView.addAll(view);
|
||||
this.view.clear();
|
||||
this.view.addAll(view);
|
||||
}).thenRunAsync(() -> {
|
||||
this.searchTask = null; // Prevent redundant cancellation
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user