summaryrefslogtreecommitdiff
path: root/server/worldgen.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-11 00:31:54 +0000
committerubq323 <ubq323@ubq323.website>2023-02-11 00:31:54 +0000
commit81ee73e37348eaae6b1e4a23378d13d129133904 (patch)
treef764a6d08ab788b797fb99a9e4e1ff99fba05cb6 /server/worldgen.lua
parent7952bbc2a606ab22e04112eb2f21a573d0db116e (diff)
rework of tick interval, refactor of chunk loading/generation into ChunkS class
Diffstat (limited to 'server/worldgen.lua')
-rw-r--r--server/worldgen.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/worldgen.lua b/server/worldgen.lua
index 5d496a0..2ef1ac0 100644
--- a/server/worldgen.lua
+++ b/server/worldgen.lua
@@ -1,6 +1,7 @@
local coords = require"common.coords"
local noise = require"noise"
local chunk = require"common.chunk"
+local ChunkS = require"chunk".ChunkS
local CHUNK_SIZE = require"common.constants".CHUNK_SIZE
local function p(amp,scale) return {scale=scale,amp=amp,gen=noise.PerlinNoise:make()} end
@@ -39,7 +40,7 @@ local function gen_chunk(chpos)
end
end
- local the_chunk = chunk.Chunk:make(chpos,tiles)
+ local the_chunk = ChunkS:make(chpos,tiles)
return the_chunk
end