diff options
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 3 |
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); } |