diff --git a/compile_php.sh b/compile_php.sh index a118a4752..ff4cb9cd9 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 09fe763f3..0544c4e40 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;