mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 05:40:01 +00:00
rename PunchBlockParticle -> BlockPunchParticle
This commit is contained in:
parent
2964a4be35
commit
9615186afd
@ -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());
|
||||
|
||||
|
@ -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;
|
Loading…
x
Reference in New Issue
Block a user