mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Grass: Avoid usage of meta
This commit is contained in:
parent
9ad0ea85c7
commit
08673172c7
@ -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
|
||||
){
|
||||
|
Loading…
x
Reference in New Issue
Block a user