Add and make use of Block->isSameType()

This commit is contained in:
Dylan K. Taylor
2018-09-27 17:59:06 +01:00
parent 8910c93de1
commit 35d51570be
8 changed files with 27 additions and 18 deletions

View File

@ -45,8 +45,7 @@ abstract class Stem extends Crops{
}else{
$grow = $this->getPlant();
foreach(Facing::HORIZONTAL as $side){
$b = $this->getSide($side);
if($b->getId() === $grow->getId()){
if($this->getSide($side)->isSameType($grow)){
return;
}
}