summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:26:04 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:26:04 +0200
commit08bd77e5472f08183beb2f0cf5a59cb5630e5e5f (patch)
treee13315dd8d2e089934391c76697b026c53f26604 /src/ChunkMap.h
parentChunkMap: do not wantonly make empty chunks (diff)
downloadcuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar.gz
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar.bz2
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar.lz
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar.xz
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.tar.zst
cuberite-08bd77e5472f08183beb2f0cf5a59cb5630e5e5f.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index e426dd298..27794efa6 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -317,9 +317,6 @@ public:
Returns false if there's no sign at those coords, true if found. */
bool GetSignLines (int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_Line1, AString & a_Line2, AString & a_Line3, AString & a_Line4); // Lua-accessible
- /** Touches the chunk, causing it to be loaded or generated */
- void TouchChunk(int a_ChunkX, int a_ChunkZ);
-
/** Queues the chunk for preparing - making sure that it's generated and lit.
The specified chunk is queued to be loaded or generated, and lit if needed.
The specified callback is called after the chunk has been prepared. If there's no preparation to do, only the callback is called.
@@ -327,12 +324,8 @@ public:
void PrepareChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_CallAfter = {}); // Lua-accessible
/** Queues the chunk for generating.
- First attempts to load the chunk from the storage. If that fails, queues the chunk for generating.
- The specified callback is called after the chunk has been loaded / generated.
- It is legal to call without the callback.
- Returns true if successful, false if not (possibly an out-of-memory error).
- If the return value is true, the callback was / will be called. */
- bool GenerateChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallAfter = nullptr); // Lua-accessible
+ First attempts to load the chunk from the storage. If that fails, queues the chunk for generating. */
+ void GenerateChunk(int a_ChunkX, int a_ChunkZ); // Lua-accessible
/** Marks the chunk as failed-to-load */
void ChunkLoadFailed(int a_ChunkX, int a_ChunkZ);