Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-02-03 19:57:21 +00:00
6 changed files with 37 additions and 21 deletions

View File

@ -96,7 +96,7 @@ class Chest extends Transparent{
if($chest instanceof TileChest){
if(
!$this->getSide(Facing::UP)->isTransparent() or
($chest->isPaired() and !$chest->getPair()->getBlock()->getSide(Facing::UP)->isTransparent()) or
(($pair = $chest->getPair()) !== null and !$pair->getBlock()->getSide(Facing::UP)->isTransparent()) or
!$chest->canOpenWith($item->getCustomName())
){
return true;