Deprecated Level->getChunkAt() in favor of Level->getChunk()

This commit is contained in:
Shoghi Cervantes
2014-09-26 10:31:32 +02:00
parent 2975509d0f
commit 5db45222c6
8 changed files with 51 additions and 38 deletions

View File

@ -43,7 +43,7 @@ class SpawnEgg extends Item{
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$entity = null;
$chunk = $level->getChunkAt($block->getX() >> 4, $block->getZ() >> 4);
$chunk = $level->getChunk($block->getX() >> 4, $block->getZ() >> 4);
if(!($chunk instanceof FullChunk)){
return false;