Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
function: render -- file: ItemConditionHotbar.lua line # 16 | MOD: Item Condition
function: reorder_render -- file: ReorderTheHotbar_ISHotbar.lua line # 370 | MOD: Reorder The Hotbar
`
function: GetItemCondition -- file: ItemConditionUtil.lua line # 45 | MOD: Item Condition
function: render -- file: ItemConditionHotbar.lua line # 16 | MOD: Item Condition
function: reorder_render -- file: ReorderTheHotbar_ISHotbar.lua line # 370 | MOD: Reorder The Hotbar
java.lang.RuntimeException: Object tried to call nil in GetItemCondition
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
(the error message is much longer)
I translated your mod into Italian, thanks for your work and for sharing it with the community!
B:\SteamLibrary\steamapps\workshop\content\108600\2852309899\mods\qdx_item_condition\42\media\lua\client\qdx\item_condition\ItemConditionUtil.lua
function ItemCondition.Util:GetItemCondition(a_item)
if not a_item then
return 0.0
end
local condition = 0.0
if self:IsItemHandWeapon(a_item) then
if not a_item.getCondition or not a_item.getConditionMax then
return 0.0
end
local percent = a_item:getCondition() / a_item:getConditionMax()
condition = ItemCondition.Math:Clamp(percent, 0.0, 1.0)
elseif self:IsItemWaterSource(a_item) then
if not a_item.getUsedDelta then
return 0.0
end
condition = ItemCondition.Math:Clamp(a_item:getUsedDelta(), 0.0, 1.0)
else
print("GPTDEBUG: Item type is not supported for condition calculation")
end
return condition
end