1
0

Implemented bed homes

+ Implemented bed home positions
* Fixed some inventory and health server/client mismatches after world
change
This commit is contained in:
Tiger Wang
2014-06-01 18:46:59 +01:00
parent 8bff3e5af2
commit 576f89c1d5
4 changed files with 42 additions and 16 deletions

View File

@@ -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))