summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-20 13:50:22 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-21 01:50:09 +0200
commitd1b0d0f5b5c288c235c8bb3412b32bb446564e66 (patch)
tree506b0cbd578ed5b2289bae0a0a27ceaddb2e9039 /src/Chunk.h
parentRemove std::make_unique from redstone handler creation (diff)
downloadcuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar.gz
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar.bz2
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar.lz
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar.xz
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.tar.zst
cuberite-d1b0d0f5b5c288c235c8bb3412b32bb446564e66.zip
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index 25de55ec6..8c236045e 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -64,7 +64,6 @@ public:
cChunk(
int a_ChunkX, int a_ChunkZ, // Chunk coords
cChunkMap * a_ChunkMap, cWorld * a_World, // Parent objects
- cChunk * a_NeighborXM, cChunk * a_NeighborXP, cChunk * a_NeighborZM, cChunk * a_NeighborZP, // Neighbor chunks
cAllocationPool<cChunkData::sChunkSection> & a_Pool
);
cChunk(cChunk & other) = delete;
@@ -89,10 +88,10 @@ public:
/** Returns true iff the chunk has changed since it was last saved. */
bool IsDirty(void) const {return m_IsDirty; }
- bool CanUnload(void);
+ bool CanUnload(void) const;
/** Returns true if the chunk could have been unloaded if it weren't dirty */
- bool CanUnloadAfterSaving(void);
+ bool CanUnloadAfterSaving(void) const;
bool IsLightValid(void) const {return m_IsLightValid; }
@@ -673,7 +672,7 @@ private:
void MoveEntityToNewChunk(OwnedEntity a_Entity);
/** Check m_Entities for cPlayer objects. */
- bool HasPlayerEntities();
+ bool HasPlayerEntities() const;
};
typedef cChunk * cChunkPtr;