summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-04-10 00:18:09 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-04-12 23:35:07 +0200
commit2fc86476ae04ea2f11a41215f783cdbc5d924579 (patch)
tree6c738eb84cb20d85f050785661e9df77ac6c29da /src/ClientHandle.cpp
parentUnify multiprotocol entity animations (diff)
downloadcuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar.gz
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar.bz2
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar.lz
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar.xz
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.tar.zst
cuberite-2fc86476ae04ea2f11a41215f783cdbc5d924579.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index d356b524a..1a99fa300 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1857,8 +1857,7 @@ bool cClientHandle::HandleHandshake(const AString & a_Username)
void cClientHandle::HandleLeaveBed()
{
cChunkInterface Interface(m_Player->GetWorld()->GetChunkMap());
- cBlockBedHandler::SetBedOccupationState(Interface, m_Player->GetLastBedPos(), false);
- m_Player->SetIsInBed(false);
+ cBlockBedHandler::VacateBed(Interface, *m_Player);
}