summaryrefslogtreecommitdiff
path: root/server/worldgen.lua
diff options
context:
space:
mode:
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