mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56: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
|
return triangles
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Wait(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
return triangles
|
return triangles
|
||||||
@@ -330,8 +332,12 @@ lib.zones = {
|
|||||||
data.contains = contains
|
data.contains = contains
|
||||||
|
|
||||||
if data.debug then
|
if data.debug then
|
||||||
data.triangles = getTriangles(data.polygon)
|
data.debug = nil
|
||||||
data.debug = debugPoly
|
|
||||||
|
CreateThread(function()
|
||||||
|
data.triangles = getTriangles(data.polygon)
|
||||||
|
data.debug = debugPoly
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
Zones[data.id] = data
|
Zones[data.id] = data
|
||||||
|
|||||||
Reference in New Issue
Block a user