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

@@ -1093,6 +1093,12 @@ void cEntity::DetectPortal()
File.WriteFile(OverworldName + "/world.ini");
MoveToWorld(OverworldName, cRoot::Get()->CreateAndInitializeWorld(OverworldName));
if (IsPlayer())
{
cPlayer * Player = (cPlayer *)this;
Player->TeleportToCoords(Player->GetLastBedPos().x, Player->GetLastBedPos().y, Player->GetLastBedPos().z);
}
break;
}
case dimOverworld: