Merge pull request #1 from mattibalize-lab/main
Update Compatibility.lua
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user