From aa92e837332cf9426f95892caeb5736d69a89577 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 16 Jan 2013 19:30:01 +0100 Subject: [PATCH] Placing blocks in an Entity fix *again* --- 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 a6282c7f..4e1a134d 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -407,7 +407,7 @@ class BlockAPI{ return $this->cancelAction($block); //No Entity WTF? } - if(!isset(Material::$transparent[$block[0]]) and $entity->inBlock($block[2][0], $block[2][1], $block[2][2])){ + if(!isset(Material::$transparent[$data["block"]]) and $entity->inBlock($block[2][0], $block[2][1], $block[2][2])){ return $this->cancelAction($block); //Entity in block }