mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +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:
@ -42,7 +42,7 @@ class ConcretePowder extends Opaque implements Fallable{
|
||||
|
||||
public function onNearbyBlockChange() : void{
|
||||
if(($block = $this->checkAdjacentWater()) !== null){
|
||||
$this->pos->getWorld()->setBlock($this->pos, $block);
|
||||
$this->position->getWorld()->setBlock($this->position, $block);
|
||||
}else{
|
||||
$this->startFalling();
|
||||
}
|
||||
|
Reference in New Issue
Block a user