Monti18 Posted June 8, 2021 Share Posted June 8, 2021 (edited) Ah sorry if that sounded a bit rude, I didn't see it as it was flashing so fast and was confused as to which one you meant, only now that I see what it looks like I can see it I had a quick look, that has nothing to do with our implementation but the way their mod is designed. They added the recipetabs directly to GLOBAL.RECIPETABS and didn't add an owner_tag restriction. Normally, you would add them with AddRecipeTab, this way they go the custom recipe tabs, but like this they are in the normal ones and without owner resctriction. They require a crafting_station, but the game gets apparently a bit strange if you do this this, as it still wants to add the tab... I would just change the UpdateTabSpacing fn a bit: for k, v in pairs(sorttabs) do --we use our table with the modified values to get the tabs that we want if v.str ~= "INA" then table.insert(tabnames, v) if not v.crafting_station then numtabslots = numtabslots + 1 end end end This way you exclude the tab of the mod, but it could with other mods that are doing it like this, then you would manully need to exclude them. Edited June 8, 2021 by Monti18 1 Link to comment https://forums.kleientertainment.com/forums/topic/130397-modifying-recipe-tabs-layout/page/2/#findComment-1467243 Share on other sites More sharing options...
lorddarkar3 Posted June 8, 2021 Author Share Posted June 8, 2021 Alright, thanks! I had to add the check in the actual crafttabs function to prevent gaps that were never used, but everything is perfect now! I did also create a function to check if a value is in a table to make adding other tabs easier in the future. Again, thanks for the help! 1 Link to comment https://forums.kleientertainment.com/forums/topic/130397-modifying-recipe-tabs-layout/page/2/#findComment-1467365 Share on other sites More sharing options...
Monti18 Posted June 9, 2021 Share Posted June 9, 2021 Perfect! You're welcome! 1 Link to comment https://forums.kleientertainment.com/forums/topic/130397-modifying-recipe-tabs-layout/page/2/#findComment-1467469 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now