Shulker open/close sounds != shulker box open/close sounds

This commit is contained in:
Dylan K. Taylor 2021-07-10 19:59:59 +01:00
parent fc090e238d
commit 9afc5be0f5
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
3 changed files with 6 additions and 6 deletions

View File

@ -28,8 +28,8 @@ use pocketmine\inventory\SimpleInventory;
use pocketmine\item\Item;
use pocketmine\network\mcpe\protocol\BlockEventPacket;
use pocketmine\world\Position;
use pocketmine\world\sound\ShulkerCloseSound;
use pocketmine\world\sound\ShulkerOpenSound;
use pocketmine\world\sound\ShulkerBoxCloseSound;
use pocketmine\world\sound\ShulkerBoxOpenSound;
use pocketmine\world\sound\Sound;
class ShulkerBoxInventory extends SimpleInventory implements BlockInventory{
@ -41,11 +41,11 @@ class ShulkerBoxInventory extends SimpleInventory implements BlockInventory{
}
protected function getOpenSound() : Sound{
return new ShulkerOpenSound();
return new ShulkerBoxOpenSound();
}
protected function getCloseSound() : Sound{
return new ShulkerCloseSound();
return new ShulkerBoxCloseSound();
}
public function canAddItem(Item $item) : bool{

View File

@ -26,7 +26,7 @@ namespace pocketmine\world\sound;
use pocketmine\math\Vector3;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
class ShulkerCloseSound implements Sound{
class ShulkerBoxCloseSound implements Sound{
public function encode(?Vector3 $pos) : array{
return [LevelSoundEventPacket::create(LevelSoundEventPacket::SOUND_SHULKERBOX_CLOSED, $pos)];

View File

@ -26,7 +26,7 @@ namespace pocketmine\world\sound;
use pocketmine\math\Vector3;
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
class ShulkerOpenSound implements Sound{
class ShulkerBoxOpenSound implements Sound{
public function encode(?Vector3 $pos) : array{
return [LevelSoundEventPacket::create(LevelSoundEventPacket::SOUND_SHULKERBOX_OPEN, $pos)];