安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題






and put the line that says
table.insert(itemDataList, itemData)
inside of a check for whether the item is available like so:
if itemData.available then
table.insert(itemDataList, itemData)
end
You make the following sort completely unnecessary by doing so, and even with it running, the stutter is gone, and you'll only see the items you actually *have* in the tooltip, up to the "and x more" threshold.
TL;DR: only add *available* items to the list, and remove the sort that comes right after or make it whatever you like, you're dealing with a reasonable number of elements now either way.
I haven't tested standing on a mountain of clothing, but I could see further optimization being to limit the size of itemData list as jtgibson suggested below in addition to this fix, if it proves necessary at all.
@RandomSithLord: That is literally not possible with this mod. Vanilla generates a list of possible ingredients for a recipe when you hover over it in the context menu, including loading the icons of the first ten items it can find. When users have a large list of mods installed (not specific to Authentic Z), Java might unload some of these textures, and so it can take a long time to process the operation. This mod removes that portion of the code. If you're experiencing additional lag, then you're either using a "bad" mod which negligently overwrites that same file/function (and reverts it to vanilla lag), or you're mistaking some other lag cause.
(I rarely carry bandages on me so I often resort to ripping my own clothing.)
Recipes ? but in description says it for the rip sheets/ craft sheet rope context menu, so i thought it won't appear for others recipes.
That's by design. It's how the context menu stutters when the 800+ clothing items show up when you have clothing mods.
This mod just removes the required items for the recipes in the context menu.
If you try to clean the bandage or dissemble items, it won't show the item you need to use like the hammer. but you can still see the item you will get after dissemble and others.