From 81ee73e37348eaae6b1e4a23378d13d129133904 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 11 Feb 2023 00:31:54 +0000 Subject: rework of tick interval, refactor of chunk loading/generation into ChunkS class --- server/worldgen.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/worldgen.lua') 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 -- cgit v1.2.3