summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-01 19:46:59 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-01 19:46:59 +0200
commit576f89c1d5bdb067c0ca06237440f754d80bd13c (patch)
treecae685487d49fd420d68c850e87cbdec467e5fca /src/Blocks
parentImplemented end and nether portals (diff)
downloadcuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar.gz
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar.bz2
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar.lz
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar.xz
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.tar.zst
cuberite-576f89c1d5bdb067c0ca06237440f754d80bd13c.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockBed.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Blocks/BlockBed.cpp b/src/Blocks/BlockBed.cpp
index 07ef997dd..5525f0d0c 100644
--- a/src/Blocks/BlockBed.cpp
+++ b/src/Blocks/BlockBed.cpp
@@ -133,6 +133,8 @@ void cBlockBedHandler::OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, Meta | 0x4); // Where 0x4 = occupied bit
a_Player->SetIsInBed(true);
+ a_Player->SetBedPos(Vector3i(a_BlockX, a_BlockY, a_BlockZ));
+ a_Player->SendMessageSuccess("Home position set successfully");
cTimeFastForwardTester Tester;
if (a_WorldInterface.ForEachPlayer(Tester))