mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Implemented sound when drinking a potion (#6444)
This commit is contained in:
@ -26,6 +26,7 @@ namespace pocketmine\item;
|
||||
use pocketmine\data\runtime\RuntimeDataDescriber;
|
||||
use pocketmine\entity\Living;
|
||||
use pocketmine\player\Player;
|
||||
use pocketmine\world\sound\BottleEmptySound;
|
||||
|
||||
class Potion extends Item implements ConsumableItem{
|
||||
|
||||
@ -50,7 +51,7 @@ class Potion extends Item implements ConsumableItem{
|
||||
}
|
||||
|
||||
public function onConsume(Living $consumer) : void{
|
||||
|
||||
$consumer->broadcastSound(new BottleEmptySound());
|
||||
}
|
||||
|
||||
public function getAdditionalEffects() : array{
|
||||
|
Reference in New Issue
Block a user