Correct Slab checking error

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-20 00:24:13 +02:00
parent ae13512627
commit 00a41e7e11
2 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class SlabBlock extends TransparentBlock{
$this->level->setBlock($target, BlockAPI::get(DOUBLE_SLAB, $this->meta));
return true;
}
}elseif(!$player->entity->inBlock($block->x, $block->y, $block->z)){
}elseif(!$player->entity->inBlock($block)){
if($block->getID() === SLAB){
if(($block->getMetadata() & 0x07) === ($this->meta & 0x07)){
$this->level->setBlock($block, BlockAPI::get(DOUBLE_SLAB, $this->meta));