mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-06 14:45:07 +00:00
fix(zones): thickness workaround
thickness is calculated incorrectly by glm.polygon.contains so this is required until it is fixed
This commit is contained in:
1 file changed
+1
-1
@@ -297,7 +297,7 @@ end
|
||||
local glm_polygon_contains = glm.polygon.contains
|
||||
|
||||
local function contains(self, coords)
|
||||
return glm_polygon_contains(self.polygon, coords, self.thickness)
|
||||
return glm_polygon_contains(self.polygon, coords, self.thickness / 4)
|
||||
end
|
||||
|
||||
local function insideSphere(self, coords)
|
||||
|
||||
Reference in new issue
Block a user