diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
commit | f713780db31e22345a1faf048ab948b1b4e03200 (patch) | |
tree | f05cc95ba5e3eef14c490700456415c6b15bdd7f /source/BlockEntities | |
parent | Bundled fixes [SEE DESC] (diff) | |
download | cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.gz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.bz2 cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.lz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.xz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.zst cuberite-f713780db31e22345a1faf048ab948b1b4e03200.zip |
Diffstat (limited to 'source/BlockEntities')
-rw-r--r-- | source/BlockEntities/DropSpenserEntity.cpp | 2 | ||||
-rw-r--r-- | source/BlockEntities/JukeboxEntity.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/BlockEntities/DropSpenserEntity.cpp b/source/BlockEntities/DropSpenserEntity.cpp index 25def9999..823ed598f 100644 --- a/source/BlockEntities/DropSpenserEntity.cpp +++ b/source/BlockEntities/DropSpenserEntity.cpp @@ -96,7 +96,7 @@ void cDropSpenserEntity::DropSpense(cChunk & a_Chunk) case E_META_DROPSPENSER_FACING_ZM: SmokeDir = 1; break; case E_META_DROPSPENSER_FACING_ZP: SmokeDir = 7; break; } - m_World->BroadcastSoundParticleEffect(2000, m_PosX * 8, m_PosY * 8, m_PosZ * 8, SmokeDir); + m_World->BroadcastSoundParticleEffect(2000, m_PosX, m_PosY, m_PosZ, SmokeDir); m_World->BroadcastSoundEffect("random.click", m_PosX * 8, m_PosY * 8, m_PosZ * 8, 1.0f, 1.0f); // Update the UI window, if open: diff --git a/source/BlockEntities/JukeboxEntity.cpp b/source/BlockEntities/JukeboxEntity.cpp index d4bbae2b0..1288719f6 100644 --- a/source/BlockEntities/JukeboxEntity.cpp +++ b/source/BlockEntities/JukeboxEntity.cpp @@ -57,7 +57,7 @@ void cJukeboxEntity::UsedBy(cPlayer * a_Player) void cJukeboxEntity::PlayRecord( void ) { - m_World->BroadcastSoundParticleEffect(1005, m_PosX * 8, m_PosY * 8, m_PosZ * 8, m_Record); + m_World->BroadcastSoundParticleEffect(1005, m_PosX, m_PosY, m_PosZ, m_Record); } @@ -68,8 +68,8 @@ void cJukeboxEntity::EjectRecord( void ) { cItems Drops; Drops.push_back(cItem(m_Record, 1, 0)); - m_World->SpawnItemPickups(Drops, m_PosX + 0.5, m_PosY + 1, m_PosZ + 0.5, 5); - m_World->BroadcastSoundParticleEffect(1005, m_PosX * 8, m_PosY * 8, m_PosZ * 8, 0); + m_World->SpawnItemPickups(Drops, m_PosX + 0.5, m_PosY + 1, m_PosZ + 0.5, 8); + m_World->BroadcastSoundParticleEffect(1005, m_PosX, m_PosY, m_PosZ, 0); } |