mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Block: rename isSameType() to hasSameTypeId()
this should remove any ambiguity about its behaviour.
This commit is contained in:
@ -87,7 +87,7 @@ class NetherVines extends Flowable{
|
||||
}
|
||||
|
||||
private function canBeSupportedBy(Block $block) : bool{
|
||||
return $block->getSupportType($this->getSupportFace())->hasCenterSupport() || $block->isSameType($this);
|
||||
return $block->getSupportType($this->getSupportFace())->hasCenterSupport() || $block->hasSameTypeId($this);
|
||||
}
|
||||
|
||||
public function onNearbyBlockChange() : void{
|
||||
@ -101,7 +101,7 @@ class NetherVines extends Flowable{
|
||||
*/
|
||||
private function seekToTip() : NetherVines{
|
||||
$top = $this;
|
||||
while(($next = $top->getSide($this->growthFace)) instanceof NetherVines && $next->isSameType($this)){
|
||||
while(($next = $top->getSide($this->growthFace)) instanceof NetherVines && $next->hasSameTypeId($this)){
|
||||
$top = $next;
|
||||
}
|
||||
return $top;
|
||||
|
Reference in New Issue
Block a user