From 4a78ffd2dd99e5c88a15e6350421a960bfcc9f55 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 1 Nov 2014 16:15:09 +0100 Subject: [PATCH] Fixed FallingSand crash --- src/pocketmine/entity/FallingSand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/FallingSand.php b/src/pocketmine/entity/FallingSand.php index a755acc0d..1ee261ed2 100644 --- a/src/pocketmine/entity/FallingSand.php +++ b/src/pocketmine/entity/FallingSand.php @@ -90,7 +90,7 @@ class FallingSand extends Entity{ if(!$this->dead){ if($this->ticksLived === 1){ - $block = $this->level->getBlock((new Vector3($this->x, $this->y, $this->z))->floor()); + $block = $this->level->getBlock($pos = (new Vector3($this->x, $this->y, $this->z))->floor()); if($block->getID() != $this->blockId){ $this->kill(); return true;