mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Correct Slab checking error
This commit is contained in:
parent
ae13512627
commit
00a41e7e11
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user