mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 17:48:36 +00:00
fix(client/zones): prevent malformed polyzone deadlock with debug
Temp workaround.
This commit is contained in:
1 parent
35448ff8cf
commit
8a0f5e946d
1 file changed
+8
-2
@@ -85,6 +85,8 @@ local function getTriangles(polygon)
|
||||
|
||||
return triangles
|
||||
end
|
||||
|
||||
Wait(0)
|
||||
end
|
||||
|
||||
return triangles
|
||||
@@ -330,8 +332,12 @@ lib.zones = {
|
||||
data.contains = contains
|
||||
|
||||
if data.debug then
|
||||
data.triangles = getTriangles(data.polygon)
|
||||
data.debug = debugPoly
|
||||
data.debug = nil
|
||||
|
||||
CreateThread(function()
|
||||
data.triangles = getTriangles(data.polygon)
|
||||
data.debug = debugPoly
|
||||
end)
|
||||
end
|
||||
|
||||
Zones[data.id] = data
|
||||
|
||||
Reference in new issue
Block a user