Make sure we repopulate the wrapper list every time.
@@ -114,16 +114,11 @@ public boolean isEmpty() {
@Override
public boolean contains(Object o) {
- if (this.cachedSnapshots == null) {
- populateCachedList();
- }
- return this.cachedSnapshots.contains(o);
+ return getCachedForgeList().contains(o);
}
private List<BlockSnapshot> getCachedForgeList() {
- if (this.cachedSnapshots == null) {
populateCachedList();
- }
return this.cachedSnapshots;
}
