Replaced old deprecated calls

This commit is contained in:
Shoghi Cervantes
2015-05-18 15:52:31 +02:00
parent f3a53be117
commit 840690d801
7 changed files with 13 additions and 10 deletions

View File

@ -59,7 +59,7 @@ abstract class Spawnable extends Tile{
return;
}
foreach($this->getLevel()->getUsingChunk($this->chunk->getX(), $this->chunk->getZ()) as $player){
foreach($this->getLevel()->getChunkPlayers($this->chunk->getX(), $this->chunk->getZ()) as $player){
if($player->spawned === true){
$this->spawnTo($player);
}