image path tweaks

This commit is contained in:
MrNewb committed 2025-08-03 15:22:33 -04:00
1 parent 2d02e8b0df
commit fa9ea6e6eb
2 files changed
+13 -4

No files matched your search

+8
View File
@@ -32,6 +32,7 @@ end
---@param item string
---@return string
Inventory.GetImagePath = function(item)
print("No get image path for this inventory, using default.")
return "https://avatars.githubusercontent.com/u/47620135"
end
@@ -42,6 +43,13 @@ Inventory.StripPNG = function(item)
return item
end
Inventory.StripWebp = function(item)
if string.find(item, ".webp") then
item = string.gsub(item, ".webp", "")
end
return item
end
---This will return the entire items table from the inventory.
---@return table
Inventory.Items = function()