shpaass / yafc-ce

Powerful Factorio calculator/analyser that works with mods
GNU General Public License v3.0
40 stars 15 forks source link

Fix exception on resource middle click in NEIE #142

Closed exyi closed 1 month ago

exyi commented 1 month ago

In the Never Enough Items, middle click on a resource. This will navigate to the clicked resource, but also crashed the current Build process, because of modification of the iterated list.

Middle click on this: image

... and error shows up:

image

Note that the middle click still works, it just an annoyance.

Solution is clone the List when replacing it's contents. Since its listy features are no longer required, I switched it to use an array instead.

exyi commented 1 month ago

Resolves #137, I guess

exyi commented 1 month ago

@DaleStan Thanks, I added the changelog.txt entry