thegrb93 / StarfallEx

Starfall, but with active development and more features. Write Garry's mod chips similar to E2, but in lua
https://discord.gg/yFBU8PU
Other
189 stars 108 forks source link

render.traceSurfaceColor() returns an invalid color #1732

Closed legokidlogan closed 1 month ago

legokidlogan commented 1 month ago

1682 made the function use setmetatable() instead of cwrap(), causing it to return some garbled data that claims to be a Color but throws errors when used as one (e.g. when used in :setColor())

There's a few other places in the pr that got changed this way as well, like getTint().

legokidlogan commented 1 month ago

Most notably, the issue stems from the lack of an alpha value being supplied.