Wooden and Stone slabs both placable

This commit is contained in:
Intyre 2016-10-18 18:19:58 +02:00
parent f3f853056a
commit e7e476b65e
No known key found for this signature in database
GPG Key ID: B06D41D26935005A

View File

@ -1678,11 +1678,7 @@ class Level implements ChunkManager, Metadatable{
return false;
}
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))){
if(!($block->canBeReplaced() === true or ($hand->getId() === Item::WOOD_SLAB and $block->getId() === Item::WOOD_SLAB) or ($hand->getId() === Item::SLAB and $block->getId() === Item::SLAB))){
return false;
}