Hi there :wave:,
i noticed that the setting for prefering lower itemlevel food was not working as expected and looked up where the error does come from.
Seems that lua table.sort() not produces consistant results when comparing 2 equal values (in this case thats "priority" in FOM_NewFindFood), so the results from the previous sorting (delta) get flawed. Example fix attached.
Hi there :wave:, i noticed that the setting for prefering lower itemlevel food was not working as expected and looked up where the error does come from.
Seems that lua table.sort() not produces consistant results when comparing 2 equal values (in this case thats "priority" in FOM_NewFindFood), so the results from the previous sorting (delta) get flawed. Example fix attached.
See also http://www.lua.org/manual/5.1/manual.html#pdf-table.sort
Version: 9.6.1, Wotlk
FOM_FlatFoodList_fix.patch
:smiley_cat: