diff --git a/src/player/Player.php b/src/player/Player.php index 8cf2648fb..f682514ba 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -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()); diff --git a/src/world/particle/PunchBlockParticle.php b/src/world/particle/BlockPunchParticle.php similarity index 96% rename from src/world/particle/PunchBlockParticle.php rename to src/world/particle/BlockPunchParticle.php index ff461c87e..11d23bcf6 100644 --- a/src/world/particle/PunchBlockParticle.php +++ b/src/world/particle/BlockPunchParticle.php @@ -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;