summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
committerubq323 <ubq323@ubq323.website>2023-06-18 22:28:37 +0100
commitf55c9f415a081a175e48b51db894f23e59ce47a2 (patch)
treeee63f98d5c4f1a2a11e9800ced9c2861eb3085a7 /server
parent598bd4332deddd5f4c506689cbd136f495835ea7 (diff)
fix line lengths
Diffstat (limited to 'server')
-rw-r--r--server/chunk.lua3
-rw-r--r--server/noise.lua16
2 files changed, 1 insertions, 18 deletions
diff --git a/server/chunk.lua b/server/chunk.lua
index bb30945..20db704 100644
--- a/server/chunk.lua
+++ b/server/chunk.lua
@@ -11,8 +11,7 @@ function ChunkS.make(cls,...)
end
function ChunkS.apply_migrations(self)
- -- if tile format has changed and format in db isn't up to date any more
- -- then perform updates here
+ -- if tile format has changed, perform updates here
for i,t in ipairs(self.tiles) do
if t == false then self.tiles[i] = 0
elseif t == true then self.tiles[i] = 9 end
diff --git a/server/noise.lua b/server/noise.lua
index c0ca57c..6fd745f 100644
--- a/server/noise.lua
+++ b/server/noise.lua
@@ -79,20 +79,4 @@ function NoiseAgg.at(self,x,y)
return t/n
end
--- local chars = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\\|()1{}[]?-_+~<>i!lI;:,\"^`'. "
-
--- local scale = 3
-
--- for x=1,10-10/40,10/40 do
--- for y = 1,10-10/60,10/60 do
-
--- local n = at(1+(x-1)/scale,1+(y-1)/scale)
--- local nn = (n +1)/2
--- local nnn = 1+nn*#chars
--- local c = chars:sub(nnn,nnn)
--- io.write(c)
--- end
--- io.write("\n")
--- end
-
return {PerlinNoise=PerlinNoise,NoiseAgg=NoiseAgg}