From 263bff01c871130fab8bc54dcffb75217e16f27c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 6 Nov 2014 12:16:12 +0100 Subject: [PATCH] Change RuntimeException to InvalidStateException 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 64c48e2ed..9cbe30357 100644 --- a/src/pocketmine/utils/BlockIterator.php +++ b/src/pocketmine/utils/BlockIterator.php @@ -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));