From 08673172c72a8b8cbb53696b3a430d03f20ce8d8 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 27 Feb 2019 13:03:23 +0000 Subject: [PATCH] Grass: Avoid usage of meta --- src/pocketmine/block/Grass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/block/Grass.php b/src/pocketmine/block/Grass.php index 4f095efba..493efc620 100644 --- a/src/pocketmine/block/Grass.php +++ b/src/pocketmine/block/Grass.php @@ -74,8 +74,8 @@ class Grass extends Solid{ $b = $this->level->getBlockAt($x, $y, $z); if( - $b->getId() !== Block::DIRT or - $b->getMeta() === 1 or //coarse dirt + !($b instanceof Dirt) or + $b instanceof CoarseDirt or $this->level->getFullLightAt($x, $y + 1, $z) < 4 or $this->level->getBlockAt($x, $y + 1, $z)->getLightFilter() >= 2 ){