summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-03 23:25:35 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-09-03 23:25:35 +0200
commit5e670a050bb263ec66227e572eaf9fe0a95ccf1c (patch)
treefbe5e46923e7ccbb33a5857c8bc21787410ca0be /src/ChunkMap.h
parentDefine _DEBUG macro for tests and main server (#4843) (diff)
downloadcuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.gz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.bz2
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.lz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.xz
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.tar.zst
cuberite-5e670a050bb263ec66227e572eaf9fe0a95ccf1c.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index 1b04ae3da..795672135 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -201,9 +201,8 @@ public:
/** Adds the entity to its appropriate chunk, takes ownership of the entity pointer */
void AddEntity(OwnedEntity a_Entity);
- /** Adds the entity to its appropriate chunk, if the entity is not already added.
- Takes ownership of the entity pointer */
- void AddEntityIfNotPresent(OwnedEntity a_Entity);
+ /** Adds the player to its appropriate chunk, takes ownership of the player pointer */
+ void AddPlayer(std::unique_ptr<cPlayer> a_Player);
/** Returns true if the entity with specified ID is present in the chunks */
bool HasEntity(UInt32 a_EntityID) const;