This commit is contained in:
Dylan K. Taylor
2025-09-25 18:18:10 +01:00
parent 3336cda34a
commit 5ca8e15027
3 changed files with 6 additions and 3 deletions

View File

@@ -1804,6 +1804,9 @@ class Server{
return $this->forceLanguage; return $this->forceLanguage;
} }
/**
* @internal
*/
public function getAuthKeyProvider() : AuthKeyProvider{ public function getAuthKeyProvider() : AuthKeyProvider{
return $this->authKeyProvider; return $this->authKeyProvider;
} }

View File

@@ -38,8 +38,8 @@ use pocketmine\network\mcpe\protocol\types\entity\EntityIds;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection; use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags; use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
use pocketmine\player\Player; use pocketmine\player\Player;
use pocketmine\world\sound\TridentHitBlockSound;
use pocketmine\world\sound\TridentHitEntitySound; use pocketmine\world\sound\TridentHitEntitySound;
use pocketmine\world\sound\TridentHitGroundSound;
class Trident extends Projectile{ class Trident extends Projectile{
@@ -119,7 +119,7 @@ class Trident extends Projectile{
protected function onHitBlock(Block $blockHit, RayTraceResult $hitResult) : void{ protected function onHitBlock(Block $blockHit, RayTraceResult $hitResult) : void{
parent::onHitBlock($blockHit, $hitResult); parent::onHitBlock($blockHit, $hitResult);
$this->canCollide = true; $this->canCollide = true;
$this->broadcastSound(new TridentHitGroundSound()); $this->broadcastSound(new TridentHitBlockSound());
} }
public function getItem() : Item{ public function getItem() : Item{

View File

@@ -27,7 +27,7 @@ use pocketmine\math\Vector3;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket; use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
use pocketmine\network\mcpe\protocol\types\LevelSoundEvent; use pocketmine\network\mcpe\protocol\types\LevelSoundEvent;
class TridentHitGroundSound implements Sound{ class TridentHitBlockSound implements Sound{
public function encode(Vector3 $pos) : array{ public function encode(Vector3 $pos) : array{
return [LevelSoundEventPacket::nonActorSound(LevelSoundEvent::ITEM_TRIDENT_HIT_GROUND, $pos, false)]; return [LevelSoundEventPacket::nonActorSound(LevelSoundEvent::ITEM_TRIDENT_HIT_GROUND, $pos, false)];