mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +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);
|
$b = $this->level->getBlockAt($x, $y, $z);
|
||||||
if(
|
if(
|
||||||
$b->getId() !== Block::DIRT or
|
!($b instanceof Dirt) or
|
||||||
$b->getMeta() === 1 or //coarse dirt
|
$b instanceof CoarseDirt or
|
||||||
$this->level->getFullLightAt($x, $y + 1, $z) < 4 or
|
$this->level->getFullLightAt($x, $y + 1, $z) < 4 or
|
||||||
$this->level->getBlockAt($x, $y + 1, $z)->getLightFilter() >= 2
|
$this->level->getBlockAt($x, $y + 1, $z)->getLightFilter() >= 2
|
||||||
){
|
){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user