Skip to content

Commit

Permalink
fix: style code
Browse files Browse the repository at this point in the history
  • Loading branch information
AzaleeX committed Nov 3, 2024
1 parent 5925f53 commit 115f364
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((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){
$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 115f364

Please sign in to comment.