Merge pull request #1 from mattibalize-lab/main

Update Compatibility.lua
This commit is contained in:
Andrew
2023-06-06 02:38:24 -07:00
committed by GitHub
+2 -2
View File
@@ -76,8 +76,8 @@ function Utils:GetIDFromGUID(guid)
return return
end end
local type = assert(self:GetGUIDType(guid), format([[Failed to determine the type of GUID "%s"]], guid)) local type = assert(self:GetGUIDType(guid), format([[Failed to determine the type of GUID "%s"]], guid))
assert(Enums.GUID:GetName(type), format([[Unknown GUID type %d]], type)) -- assert(Enums.GUID:GetName(type), format([[Unknown GUID type %d]], type))
assert(Enums.GUID:CanHaveID(type), format([[GUID "%s" does not contain ID]], guid)) -- assert(Enums.GUID:CanHaveID(type), format([[GUID "%s" does not contain ID]], guid))
return tonumber(guid:sub(7, 7 + 6 - 1), 16) return tonumber(guid:sub(7, 7 + 6 - 1), 16)
end end