diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-03-05 22:21:39 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-03-05 22:21:39 +0100 |
commit | f3da0cf1ae96048bb84a083099faec0b0a736bf1 (patch) | |
tree | c18dd3120d26e49e9c0634b87054a4fc14e6969b /src/ClientHandle.cpp | |
parent | Handle client 'leave bed' request (diff) | |
download | cuberite-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 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 3 |
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); } |