Fixed some weak comparisons

This commit is contained in:
Dylan K. Taylor
2017-06-05 21:07:24 +01:00
parent 6ea0eb47ec
commit b7b7bcee4f
6 changed files with 8 additions and 8 deletions

View File

@ -84,7 +84,7 @@ class Cactus extends Transparent{
}
}elseif($type === Level::BLOCK_UPDATE_RANDOM){
if($this->getSide(0)->getId() !== self::CACTUS){
if($this->meta == 0x0F){
if($this->meta === 0x0f){
for($y = 1; $y < 3; ++$y){
$b = $this->getLevel()->getBlock(new Vector3($this->x, $this->y + $y, $this->z));
if($b->getId() === self::AIR){