diff options
author | ubq323 <ubq323@ubq323.website> | 2023-02-11 00:31:54 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-02-11 00:31:54 +0000 |
commit | 81ee73e37348eaae6b1e4a23378d13d129133904 (patch) | |
tree | f764a6d08ab788b797fb99a9e4e1ff99fba05cb6 /server/worldgen.lua | |
parent | 7952bbc2a606ab22e04112eb2f21a573d0db116e (diff) |
rework of tick interval, refactor of chunk loading/generation into ChunkS class
Diffstat (limited to 'server/worldgen.lua')
-rw-r--r-- | server/worldgen.lua | 3 |
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 |