mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(client/zones): prevent malformed polyzone deadlock with debug
Temp workaround.
This commit is contained in:
@@ -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