Fix for slab placing, close #31

This commit is contained in:
Intyre 2016-10-18 17:37:40 +02:00
parent ebcc16d283
commit bcc641a25a
No known key found for this signature in database
GPG Key ID: B06D41D26935005A

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;
}