mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Merge changes from ALPHA11 for 1.2.13
This commit is contained in:
@ -24,11 +24,12 @@ declare(strict_types=1);
|
||||
namespace pocketmine\level\particle;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\math\Vector3;
|
||||
|
||||
class DestroyBlockParticle extends DestroyParticle{
|
||||
|
||||
public function __construct(Vector3 $pos, Block $b){
|
||||
parent::__construct($pos, $b->getId() | ($b->getDamage() << 8));
|
||||
parent::__construct($pos, BlockFactory::toStaticRuntimeId($b->getId(), $b->getDamage()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user