Rename BlockIds -> BlockLegacyIds

This commit is contained in:
Dylan K. Taylor
2019-03-23 19:46:31 +00:00
parent 79ef8e0803
commit 2a3e6dcf00
83 changed files with 541 additions and 541 deletions

View File

@ -24,7 +24,7 @@ declare(strict_types=1);
namespace pocketmine\entity\projectile;
use pocketmine\block\BlockFactory;
use pocketmine\block\BlockIds;
use pocketmine\block\BlockLegacyIds;
use pocketmine\entity\effect\EffectInstance;
use pocketmine\entity\effect\InstantEffect;
use pocketmine\entity\Living;
@ -121,12 +121,12 @@ class SplashPotion extends Throwable{
}elseif($event instanceof ProjectileHitBlockEvent and $this->getPotionId() === Potion::WATER){
$blockIn = $event->getBlockHit()->getSide($event->getRayTraceResult()->getHitFace());
if($blockIn->getId() === BlockIds::FIRE){
$this->level->setBlock($blockIn, BlockFactory::get(BlockIds::AIR));
if($blockIn->getId() === BlockLegacyIds::FIRE){
$this->level->setBlock($blockIn, BlockFactory::get(BlockLegacyIds::AIR));
}
foreach($blockIn->getHorizontalSides() as $horizontalSide){
if($horizontalSide->getId() === BlockIds::FIRE){
$this->level->setBlock($horizontalSide, BlockFactory::get(BlockIds::AIR));
if($horizontalSide->getId() === BlockLegacyIds::FIRE){
$this->level->setBlock($horizontalSide, BlockFactory::get(BlockLegacyIds::AIR));
}
}
}