summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-03-20 21:58:19 +0100
committerGitHub <noreply@github.com>2021-03-20 21:58:19 +0100
commit90369deb5a870674ab02a26a93a71f06eafe9293 (patch)
treee37bb9272ea0265db7dce611120ed63381ca2626 /src/Entities
parentDon't send ping updates one packet at a time (diff)
downloadcuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.gz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.bz2
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.lz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.xz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.zst
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp2
-rw-r--r--src/Entities/Player.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index e431e4cc5..7d8c3a191 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -83,7 +83,7 @@ const int cPlayer::EATING_TICKS = 30;
-cPlayer::cPlayer(const cClientHandlePtr & a_Client) :
+cPlayer::cPlayer(const std::shared_ptr<cClientHandle> & a_Client) :
Super(etPlayer, 0.6, 1.8),
m_bVisible(true),
m_FoodLevel(MAX_FOOD_LEVEL),
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 86d4a2a07..2d31ef84b 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -47,7 +47,7 @@ public:
CLASS_PROTODEF(cPlayer)
- cPlayer(const cClientHandlePtr & a_Client);
+ cPlayer(const std::shared_ptr<cClientHandle> & a_Client);
virtual ~cPlayer() override;
// tolua_begin
@@ -656,7 +656,7 @@ private:
/** The item being dragged by the cursor while in a UI window */
cItem m_DraggingItem;
- cClientHandlePtr m_ClientHandle;
+ std::shared_ptr<cClientHandle> m_ClientHandle;
cSlotNums m_InventoryPaintSlots;