mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Add and make use of Block->isSameType()
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user