From 0ead3ec781c9352d17e43b30c3487648b35cd856 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 2 May 2015 17:38:45 +0200 Subject: [PATCH] Changed round/floor to floor on BlockIterator --- src/pocketmine/utils/BlockIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/utils/BlockIterator.php b/src/pocketmine/utils/BlockIterator.php index d31f8ff49..f0de2987d 100644 --- a/src/pocketmine/utils/BlockIterator.php +++ b/src/pocketmine/utils/BlockIterator.php @@ -75,7 +75,7 @@ class BlockIterator implements \Iterator{ $thirdPosition = 0; $pos = new Vector3($startClone->x, $startClone->y, $startClone->z); - $startBlock = $this->level->getBlock($pos->floor()); + $startBlock = $this->level->getBlock(new Vector3(floor($pos->x), floor($pos->y), floor($pos->z))); if($this->getXLength($direction) > $mainDirection){ $this->mainFace = $this->getXFace($direction);