Skip to content

Commit

Permalink
Linting patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nightcycle committed Feb 4, 2024
1 parent 514f783 commit c7093e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions selene.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ exclude = [
"*.spec.luau",
"*.remodel.lua",
"*.rbxmk.lua",
"*.bench.lua",
"*.bench.luau",
"*.d.lua",
"*.story.lua",
"*.story.luau",
Expand Down
30 changes: 15 additions & 15 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ do
if self._PointCache3D[origin] then
points = self._PointCache3D[origin]
else
for x = -1, 1 do
for y = -1, 1 do
for z = -1, 1 do
table.insert(points, getPoint3D(self.Seed, origin.X + x, origin.Y + y, origin.Z + z))
for pX = -1, 1 do
for pY = -1, 1 do
for pZ = -1, 1 do
table.insert(points, getPoint3D(self.Seed, origin.X + pX, origin.Y + pY, origin.Z + pZ))
end
end
end
Expand Down Expand Up @@ -178,10 +178,10 @@ do
if self._PointCache2D[origin] then
points = self._PointCache2D[origin]
else
for x = -1, 1 do
for y = -1, 1 do
for pX = -1, 1 do
for pY = -1, 1 do
-- if offset == Vector3.zero then
table.insert(points, getPoint2D(self.Seed, origin.X + x, origin.Y + y))
table.insert(points, getPoint2D(self.Seed, origin.X + pX, origin.Y + pY))
-- end
end
end
Expand Down Expand Up @@ -215,10 +215,10 @@ do
if self._PointCache3D[origin] then
points = self._PointCache3D[origin]
else
for x = -1, 1 do
for y = -1, 1 do
for z = -1, 1 do
local offset = Vector3.new(x, y, z)
for pX = -1, 1 do
for pY = -1, 1 do
for pZ = -1, 1 do
local offset = Vector3.new(pX, pY, pZ)
-- if offset == Vector3.zero then
table.insert(points, getPoint3D(self.Seed, origin.X + offset.X, origin.Y + offset.Y, origin.Z + offset.Z))
-- end
Expand Down Expand Up @@ -251,10 +251,10 @@ do
if self._PointCache2D[origin] then
points = self._PointCache2D[origin]
else
for x = -1, 1 do
for y = -1, 1 do
for z = -1, 1 do
local offset = Vector3.new(x, y, z)
for pX = -1, 1 do
for pY = -1, 1 do
for pZ = -1, 1 do
local offset = Vector3.new(pX, pY, pZ)
-- if offset == Vector3.zero then
table.insert(points, getPoint2D(self.Seed, origin.X + offset.X, origin.Y + offset.Y))
-- end
Expand Down

0 comments on commit c7093e4

Please sign in to comment.