Block: rename isSameType() to hasSameTypeId()

this should remove any ambiguity about its behaviour.
This commit is contained in:
Dylan K. Taylor
2023-04-21 20:25:21 +01:00
parent 769be8e140
commit 6c0ad9589b
15 changed files with 33 additions and 33 deletions

View File

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