fix(client/zones): prevent malformed polyzone deadlock with debug

Temp workaround.
This commit is contained in:
Linden
2023-06-20 09:19:27 +10:00
parent 35448ff8cf
commit 8a0f5e946d

View File

@@ -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.debug = nil
CreateThread(function()
data.triangles = getTriangles(data.polygon)
data.debug = debugPoly
end)
end
Zones[data.id] = data