mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Position: rename getWorldNonNull() to getWorld(), remove original getWorld()
This commit is contained in:
@ -94,8 +94,8 @@ class SnowLayer extends Flowable implements Fallable{
|
||||
}
|
||||
|
||||
public function onRandomTick() : void{
|
||||
if($this->pos->getWorldNonNull()->getBlockLightAt($this->pos->x, $this->pos->y, $this->pos->z) >= 12){
|
||||
$this->pos->getWorldNonNull()->setBlock($this->pos, VanillaBlocks::AIR(), false);
|
||||
if($this->pos->getWorld()->getBlockLightAt($this->pos->x, $this->pos->y, $this->pos->z) >= 12){
|
||||
$this->pos->getWorld()->setBlock($this->pos, VanillaBlocks::AIR(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user