Changed round/floor to floor on BlockIterator

This commit is contained in:
Shoghi Cervantes 2015-05-02 17:38:45 +02:00
parent fdf395721e
commit 0ead3ec781
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -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);