mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
first shot making Block not extend Position
this makes some stuff a lot less pretty, but this seems to be the bare minimum necessary to do this task. It can be enhanced later.
This commit is contained in:
@ -88,8 +88,8 @@ class SnowLayer extends Flowable implements Fallable{
|
||||
}
|
||||
|
||||
public function onRandomTick() : void{
|
||||
if($this->world->getBlockLightAt($this->x, $this->y, $this->z) >= 12){
|
||||
$this->getWorld()->setBlock($this, 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