Compass Error in instances
arieh opened this issue ยท 3 comments
Compass.lua#31 - seems like GetPlayerFacing()
might return nil
I solved it by doing
local angle = 0
local facing = GetPlayerFacing() or 0
if rotateMinimap == "1" then
angle = -facing or angle
end
Looks like they changed how maths works and we can't have negative nil any more. ๐
Oh well.