mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fixed ender chest sounds, closes #2611
This commit is contained in:
@@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\inventory;
|
||||
|
||||
use pocketmine\level\Position;
|
||||
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
use pocketmine\network\mcpe\protocol\types\WindowTypes;
|
||||
use pocketmine\tile\EnderChest;
|
||||
|
||||
@@ -58,6 +59,14 @@ class EnderChestInventory extends ChestInventory{
|
||||
$this->holder->setLevel($enderChest->getLevel());
|
||||
}
|
||||
|
||||
protected function getOpenSound() : int{
|
||||
return LevelSoundEventPacket::SOUND_ENDERCHEST_OPEN;
|
||||
}
|
||||
|
||||
protected function getCloseSound() : int{
|
||||
return LevelSoundEventPacket::SOUND_ENDERCHEST_CLOSED;
|
||||
}
|
||||
|
||||
/**
|
||||
* This override is here for documentation and code completion purposes only.
|
||||
* @return Position
|
||||
|
Reference in New Issue
Block a user