mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Changed round/floor to floor on BlockIterator
This commit is contained in:
parent
fdf395721e
commit
0ead3ec781
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user