diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2017-02-15 06:05:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-15 06:05:24 +0100 |
commit | dae2adde6563bec4b614230992cae6b1ca965b4f (patch) | |
tree | 34149ac0340cc394019eb430247d03950b485555 /src/BlockEntities/JukeboxEntity.cpp | |
parent | Added some blocks and items (#3503) (diff) | |
download | cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.gz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.bz2 cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.lz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.xz cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.zst cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.zip |
Diffstat (limited to 'src/BlockEntities/JukeboxEntity.cpp')
-rw-r--r-- | src/BlockEntities/JukeboxEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/JukeboxEntity.cpp b/src/BlockEntities/JukeboxEntity.cpp index 467a3a28a..f505a3030 100644 --- a/src/BlockEntities/JukeboxEntity.cpp +++ b/src/BlockEntities/JukeboxEntity.cpp @@ -64,7 +64,7 @@ bool cJukeboxEntity::PlayRecord(int a_Record) EjectRecord(); } m_Record = a_Record; - m_World->BroadcastSoundParticleEffect(EffectID::SFX_PLAY_MUSIC_DISC, m_PosX, m_PosY, m_PosZ, m_Record); + m_World->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_PLAY_MUSIC_DISC, m_PosX, m_PosY, m_PosZ, m_Record); m_World->SetBlockMeta(m_PosX, m_PosY, m_PosZ, E_META_JUKEBOX_ON); return true; } @@ -85,7 +85,7 @@ bool cJukeboxEntity::EjectRecord(void) Drops.push_back(cItem(static_cast<short>(m_Record), 1, 0)); m_Record = 0; m_World->SpawnItemPickups(Drops, m_PosX + 0.5, m_PosY + 1, m_PosZ + 0.5, 8); - m_World->BroadcastSoundParticleEffect(EffectID::SFX_PLAY_MUSIC_DISC, m_PosX, m_PosY, m_PosZ, 0); + m_World->BroadcastSoundParticleEffect(EffectID::SFX_RANDOM_PLAY_MUSIC_DISC, m_PosX, m_PosY, m_PosZ, 0); m_World->SetBlockMeta(m_PosX, m_PosY, m_PosZ, E_META_JUKEBOX_OFF); return true; } |