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

@ -45,7 +45,7 @@ class Fallable extends Solid{
if($this->hasPhysics === true and $type === Level::BLOCK_UPDATE_NORMAL){
$down = $this->getSide(0);
if($down->getID() === self::AIR or ($down instanceof Liquid)){
$fall = new FallingBlock($this->getLevel()->getChunkAt($this->x >> 4, $this->z >> 4), new Compound("", [
$fall = new FallingBlock($this->getLevel()->getChunk($this->x >> 4, $this->z >> 4), new Compound("", [
"Pos" => new Enum("Pos", [
new Double("", $this->x + 0.5),
new Double("", $this->y + 0.5),