Bed placement

This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-04 19:57:23 +01:00
parent 719dff6e3c
commit 565cb9781c
4 changed files with 65 additions and 1 deletions

View File

@@ -322,7 +322,7 @@ class BlockAPI{
2 => 2,
3 => 5,
);
$next = $this->server->api->level->getBlockFace($block, $face[(($direction + 3) % 4)]);
$next = $level->getBlockFace($block, $face[(($direction + 3) % 4)]);
if(!isset(Material::$replaceable[$next[0]])){
return false;
}