Deprecated Level->getSpawn() in favor of Level->getSpawnLocation()

This commit is contained in:
Shoghi Cervantes
2014-10-10 11:43:54 +02:00
parent 9ede8177df
commit 8b585fd9f7
4 changed files with 12 additions and 11 deletions

View File

@ -1114,8 +1114,8 @@ class Server{
$radiusSquared = ($this->getViewDistance() + 1) / M_PI;
$radius = ceil(sqrt($radiusSquared));
$centerX = $level->getSpawn()->getX() >> 4;
$centerZ = $level->getSpawn()->getZ() >> 4;
$centerX = $level->getSpawnLocation()->getX() >> 4;
$centerZ = $level->getSpawnLocation()->getZ() >> 4;
$order = [];