Jump to content

Mod recipes are gone from filters


ADM
  • Fixed

Just noticed modded recipes doesn't display in any filter despite they are attributed to special ones or even in the modded items one

I should have about 40 recipes showing here and it's totally empty, they only display if we use the search bar :0-.thumb.jpg.12ed3f42b14ac92cf0ca1fd651e2de39.jpg

0-.thumb.jpg.58f96cbf5dd33cda54fe38d94c7e7371.jpg

Also asking in hopes this can be fixed / added / getting modders informed but are we supposed to still have the ability of reordering modded recipes in the filters ? Feels sad this is removed because of this QoL update.


Steps to Reproduce

Modded recipes are nowhere to be found in the different filters

  • Sad Dupe 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

The issue is the default sort values are being set BEFORE mods add their recipe
 

--recipes_filter.lua
for _, filter in pairs(CRAFTING_FILTERS) do
	if filter.recipes ~= nil then
		filter.default_sort_values = table.invert(filter.recipes)
	end
end

--mods then add their recipes after this, and thus default_sort_values needs an update


This piece of code should most likely be run in "DoInitGame" in gamelogic.lua. To make sure all recipes have been added in, the same is already done for ground tiles and equip slots

Edited by Hornete
  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...