From 354893ba11f8876fdd736aeb0530b2cbd07dd711 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Mon, 4 Mar 2013 16:50:41 +0100 Subject: [PATCH] BlockAPI::getBlockFace() method optimization to use the Vector3 method --- src/API/BlockAPI.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 05eff99add..322ccb0d5e 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -101,9 +101,7 @@ class BlockAPI{ } public function getBlockFace(Block $block, $face){ - $data = array("x" => $block->x, "y" => $block->y, "z" => $block->z); - BlockFace::setPosition($data, $face); - return $this->getBlock($data["x"], $data["y"], $data["z"]); + return $this->getBlock($block->getSide($face)); } function __construct(PocketMinecraftServer $server){