mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 19:37:17 +00:00
Change RuntimeException to InvalidStateException on BlockIterator
This commit is contained in:
parent
987d647b76
commit
263bff01c8
@ -166,7 +166,7 @@ class BlockIterator implements \Iterator{
|
||||
}
|
||||
|
||||
if(!$startBlockFound){
|
||||
throw new \RuntimeException("Start block missed in BlockIterator");
|
||||
throw new \InvalidStateException("Start block missed in BlockIterator");
|
||||
}
|
||||
|
||||
$this->maxDistanceInt = round($maxDistance / (sqrt($mainDirection ** 2 + $secondDirection ** 2 + $thirdDirection ** 2) / $mainDirection));
|
||||
|
Loading…
x
Reference in New Issue
Block a user