rename PunchBlockParticle -> BlockPunchParticle

This commit is contained in:
Dylan K. Taylor 2020-05-01 12:36:31 +01:00
parent 2964a4be35
commit 9615186afd
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ use pocketmine\world\ChunkListener;
use pocketmine\world\ChunkListenerNoOpTrait;
use pocketmine\world\ChunkLoader;
use pocketmine\world\format\Chunk;
use pocketmine\world\particle\PunchBlockParticle;
use pocketmine\world\particle\BlockPunchParticle;
use pocketmine\world\Position;
use pocketmine\world\sound\BlockPunchSound;
use pocketmine\world\World;
@ -1583,7 +1583,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
public function continueBreakBlock(Vector3 $pos, int $face) : void{
$block = $this->getWorld()->getBlock($pos);
$this->getWorld()->addParticle($pos, new PunchBlockParticle($block, $face));
$this->getWorld()->addParticle($pos, new BlockPunchParticle($block, $face));
$this->getWorld()->addSound($pos, new BlockPunchSound($block));
$this->broadcastEntityEvent(ActorEventPacket::ARM_SWING, null, $this->getViewers());

View File

@ -30,7 +30,7 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket;
/**
* This particle appears when a player is attacking a block face in survival mode attempting to break it.
*/
class PunchBlockParticle implements Particle{
class BlockPunchParticle implements Particle{
/** @var Block */
private $block;