安装 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.