Regenerated block/item id lists and refactored some names for consistency with MCPE

This commit is contained in:
Dylan K. Taylor
2017-08-04 12:16:44 +01:00
parent 3048a3b39b
commit 561d8e7a39
39 changed files with 301 additions and 282 deletions

View File

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