mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Refactor Block & Tile: getPos() to getPosition() (#4395)
this also changes the name of the class property 'pos' to 'position' as well as Block->getPosOffset() to Block->getPositionOffset()
This commit is contained in:
@ -121,9 +121,9 @@ final class WallCoralFan extends BaseCoral{
|
||||
}
|
||||
|
||||
public function onNearbyBlockChange() : void{
|
||||
$world = $this->pos->getWorld();
|
||||
if(!$world->getBlock($this->pos->getSide(Facing::opposite($this->facing)))->isSolid()){
|
||||
$world->useBreakOn($this->pos);
|
||||
$world = $this->position->getWorld();
|
||||
if(!$world->getBlock($this->position->getSide(Facing::opposite($this->facing)))->isSolid()){
|
||||
$world->useBreakOn($this->position);
|
||||
}else{
|
||||
parent::onNearbyBlockChange();
|
||||
}
|
||||
|
Reference in New Issue
Block a user