mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 18:41:47 +00:00
Fix for slab placing, close #31
This commit is contained in:
parent
ebcc16d283
commit
bcc641a25a
@ -1678,7 +1678,11 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!($block->canBeReplaced() === true or ($hand->getId() === Item::SLAB and $block->getId() === Item::SLAB))){
|
if($face <= 1 and $hand->getId() === Item::WOOD_SLAB and $target->getId() === Item::WOOD_SLAB){
|
||||||
|
$block = $target;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!($block->canBeReplaced() === true or ($hand->getId() === Item::WOOD_SLAB and $block->getId() === Item::WOOD_SLAB))){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user