This commit is contained in:
Mr.Crowley committed 2025-08-16 19:28:09 -05:00
commit c34b1cce27
2 files changed
+5 -6

No files matched your search

+1 -2
View File
@@ -64,7 +64,7 @@ function Point.StartLoop()
end
end
else
local distance = #(coords.xyz - point.coords.xyz)
local distance = #(vector3(coords.x, coords.y, coords.z) - vector3(point.coords.x, point.coords.y, point.coords.z))
if distance < point.distance then
if not point.inside then
point.inside = true
@@ -131,7 +131,6 @@ function Point.UpdateCoords(id, coords)
if oldGrid then
oldGrid[point.id] = nil
end
-- Add to new grid
point.coords = coords
newGrid[point.id] = point
return true