summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 00:23:05 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-27 00:23:05 +0100
commit0d8ecbeca1a93acab395326db3e90f444c8bbc18 (patch)
tree529ef281ab20829534f272157edede9d7cb087d4 /source/cChunk.cpp
parentPlayers can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld() (diff)
downloadcuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.gz
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.bz2
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.lz
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.xz
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.zst
cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.zip
Diffstat (limited to '')
-rw-r--r--source/cChunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 2c915d2ef..2e6e7a633 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -1,3 +1,4 @@
+
#ifndef _WIN32
#include <cstring>
#include <cstdlib>
@@ -133,8 +134,7 @@ void cChunk::Initialize()
// Clear memory
memset( m_BlockData, 0x00, c_BlockDataSize );
- cWorldGenerator Generator;
- Generator.GenerateChunk( this );
+ m_World->GetWorldGenerator()->GenerateChunk( this );
CalculateHeightmap();
CalculateLighting();