From f55c9f415a081a175e48b51db894f23e59ce47a2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 18 Jun 2023 22:28:37 +0100 Subject: fix line lengths --- server/chunk.lua | 3 +-- server/noise.lua | 16 ---------------- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'server') 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} -- cgit v1.2.3