Compare commits

...
2 Commits
Author SHA1 Message Date
Wofsauge 2663deafa0 chore: release 4.91
Check Localization / Check Localization process (push) Canceled after 0s
2025-01-25 16:29:26 +01:00
Wofsauge b10a18c2b6 Fixed error caused by entities that dont have an icon assigned to them
closes #796
2025-01-25 15:59:59 +01:00
3 changed files with 12 additions and 6 deletions

No files matched your search

+9 -3
View File
@@ -1118,7 +1118,9 @@ function EID:createItemIconObject(str)
if Type == 1 then return EID:getIcon("Player" .. Sub)
elseif Type == 5 then
local iconName = EID:GetIconNameByVariant(Var)
return EID:createItemIconObject(iconName .. Sub)
if iconName then
return EID:createItemIconObject(iconName .. Sub)
end
end
end
@@ -2558,7 +2560,9 @@ function EID:getObjectIcon(descObj)
if descObj.ObjType == 5 then
local iconName = EID:GetIconNameByVariant(descObj.ObjVariant)
return EID:createItemIconObject(iconName .. descObj.ObjSubType)
if iconName then
return EID:createItemIconObject(iconName .. descObj.ObjSubType)
end
-- Handle Dice Room Floor
elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then
---@diagnostic disable-next-line: return-type-mismatch
@@ -2737,7 +2741,9 @@ function EID:GetIconStringByDescriptionObject(descObj)
return "{{Player" .. (subType or "") .. "}}"
elseif descObj.ObjType == 5 then
local iconName = EID:GetIconNameByVariant(descObj.ObjVariant)
return "{{" .. iconName .. subType .. "}}"
if iconName then
return "{{" .. iconName .. subType .. "}}"
end
elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then
return "{{DiceFace" .. subType .. "}}"
end
+2 -2
View File
@@ -12,8 +12,8 @@ EID.isRepentance = REPENTANCE or EID.isRepentancePlus -- REPENTANCE variable can
require("eid_config")
EID.Config = EID.UserConfig
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
EID.ModVersion = 4.90
EID.ModVersionCommit = "830d7b7"
EID.ModVersion = 4.91
EID.ModVersionCommit = "b10a18c"
EID.DefaultConfig.Version = EID.Config.Version
EID.isHidden = false
EID.player = nil -- The primary Player Entity of Player 1
+1 -1
View File
@@ -56,7 +56,7 @@ There are multiple Versions of the mod, depending on which DLCs you have install
[img]https://i.imgur.com/jrdGbna.png[/img]
[url=https://github.com/wofsauge/External-Item-Descriptions/blob/master/CREDITS.md]Check out the credits here[/url]
</description>
<version>4.90</version>
<version>4.91</version>
<visibility>Public</visibility>
<tag id="Lua"/>
<tag id="Items"/>