MCPcopy Create free account
hub / github.com/cuberite/cuberite / PrepareState

Method PrepareState

src/Generating/DistortedHeightmap.cpp:407–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405
406
407void cDistortedHeightmap::PrepareState(int a_ChunkX, int a_ChunkZ)
408{
409 if ((m_CurChunkX == a_ChunkX) && (m_CurChunkZ == a_ChunkZ))
410 {
411 return;
412 }
413 m_CurChunkX = a_ChunkX;
414 m_CurChunkZ = a_ChunkZ;
415
416
417 m_HeightGen.GenHeightMap(a_ChunkX, a_ChunkZ, m_CurChunkHeights);
418 UpdateDistortAmps();
419 GenerateHeightArray();
420}
421
422
423

Callers

nothing calls this directly

Calls 1

GenHeightMapMethod · 0.45

Tested by

no test coverage detected