diff --git a/src/block/GrassNylium.php b/src/block/GrassNylium.php index 9b8bbcbe21..4ffd974a14 100644 --- a/src/block/GrassNylium.php +++ b/src/block/GrassNylium.php @@ -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); } }