Skip to content

Commit

Permalink
Fix color3 reading (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
buildthomas authored Jul 11, 2024
1 parent 535a9af commit e91575a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataTypes/color3.luau
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local color3 = {
uint8NoAlloc(input.B * 255)
end,
read = function(b: buffer, cursor: number)
return Color3.new(buffer.readu8(b, cursor), buffer.readu8(b, cursor + 1), buffer.readu8(b, cursor + 2)), 3
return Color3.fromRGB(buffer.readu8(b, cursor), buffer.readu8(b, cursor + 1), buffer.readu8(b, cursor + 2)), 3
end,
}

Expand Down

0 comments on commit e91575a

Please sign in to comment.