Fix for slab placing, close #31

This commit is contained in:
Intyre
2016-10-18 17:37:40 +02:00
parent ebcc16d283
commit bcc641a25a

View File

@ -1678,7 +1678,11 @@ class Level implements ChunkManager, Metadatable{
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;
}