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/Items/ItemHandler.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/Items/ItemHandler.cpp')
-rw-r--r-- | src/Items/ItemHandler.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp index b3ad73b25..d05364e95 100644 --- a/src/Items/ItemHandler.cpp +++ b/src/Items/ItemHandler.cpp @@ -416,29 +416,6 @@ bool cItemHandler::OnPlayerPlace( return false; } - // Play the placement sound for the main block: - for (const auto & blk: blocks) - { - // Find the main block by comparing the coords: - if ((blk.GetX() != a_BlockX) || (blk.GetY() != a_BlockY) || (blk.GetZ() != a_BlockZ)) - { - continue; - } - AString PlaceSound = cBlockInfo::GetPlaceSound(blk.m_BlockType); - float Volume = 1.0f, Pitch = 0.8f; - if (PlaceSound == "dig.metal") - { - Pitch = 1.2f; - PlaceSound = "dig.stone"; - } - else if (PlaceSound == "random.anvil_land") - { - Volume = 0.65f; - } - a_World.BroadcastSoundEffect(PlaceSound, a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, Volume, Pitch); - break; - } // for blk - blocks[] - // Remove the "placed" item: if (a_Player.IsGameModeSurvival()) { |