From 57282225d2effe8582b1e16a47dc000ef1043047 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 5 Jan 2013 02:40:29 +0100 Subject: [PATCH] Fixed Sapling, flower placing --- compile_php.sh | 3 ++- src/API/BlockAPI.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compile_php.sh b/compile_php.sh index a118a47522..ff4cb9cd9f 100644 --- a/compile_php.sh +++ b/compile_php.sh @@ -64,7 +64,8 @@ cd ../ --with-zlib \ --enable-sockets \ --enable-pthreads \ ---enable-maintainer-zts +--enable-maintainer-zts \ +--enable-cli make echo "n" | make test make install diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index 09fe763f3a..0544c4e406 100644 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -306,7 +306,7 @@ class BlockAPI{ } case 37: case 38: - if($target[0] !== 2 and $target[0] !== 3){ + if(($target[0] !== 2 and $target[0] !== 3) or $data["face"] !== 1){ return false; } break;