From b56486846762da8c939a32e44cf6a76e1a329671 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 May 2013 23:25:43 +0200 Subject: [PATCH] Fixed #305 Made BlockAPI check for flowable blocks instead of transparent blocks [gh#305] --- src/API/BlockAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 5eaafe4c..6fa0b895 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -337,7 +337,7 @@ class BlockAPI{ return $this->cancelAction($block, $player); } - if($hand->isTransparent === false and $player->entity->inBlock($block)){ + if($hand->isFlowable === false and $player->entity->inBlock($block)){ return $this->cancelAction($block, $player); //Entity in block }