summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-05 22:21:39 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-05 22:21:39 +0100
commitf3da0cf1ae96048bb84a083099faec0b0a736bf1 (patch)
treec18dd3120d26e49e9c0634b87054a4fc14e6969b /src/ClientHandle.cpp
parentHandle client 'leave bed' request (diff)
downloadcuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.gz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.bz2
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.lz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.xz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.zst
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 61ec73633..9a3c59b86 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1740,7 +1740,8 @@ void cClientHandle::HandleEntityLeaveBed(int a_EntityID)
return;
}
- cBlockBedHandler::SetBedOccupationState(cChunkInterface(GetPlayer()->GetWorld()->GetChunkMap()), GetPlayer()->GetLastBedPos(), false);
+ cChunkInterface Interface(GetPlayer()->GetWorld()->GetChunkMap());
+ cBlockBedHandler::SetBedOccupationState(Interface, GetPlayer()->GetLastBedPos(), false);
GetPlayer()->SetIsInBed(false);
}