Skip to content

Commit

Permalink
fix: phpstan test
Browse files Browse the repository at this point in the history
  • Loading branch information
AzaleeX committed Nov 3, 2024
1 parent 36d2208 commit 316156f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block/GrassNylium.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public function ticksRandomly() : bool{

public function onRandomTick() : void{
$world = $this->position->getWorld();
$lightAbove = $world->getFullLightAt($this->position->x, $this->position->y + 1, $this->position->z);
if($lightAbove < 4 && $world->getBlockAt($this->position->x, $this->position->y + 1, $this->position->z)->getLightFilter() >= 2){
$lightAbove = $world->getFullLightAt((int)$this->position->x, (int)$this->position->y + 1, (int)$this->position->z);
if($lightAbove < 4 && $world->getBlockAt((int)$this->position->x, (int)$this->position->y + 1, (int)$this->position->z)->getLightFilter() >= 2){
BlockEventHelper::spread($this, VanillaBlocks::NETHERRACK(), $this);
}
}
Expand Down

0 comments on commit 316156f

Please sign in to comment.