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/ItemSlab.h | |
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 '')
-rw-r--r-- | src/Items/ItemSlab.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Items/ItemSlab.h b/src/Items/ItemSlab.h index e51c6675b..7741f5f30 100644 --- a/src/Items/ItemSlab.h +++ b/src/Items/ItemSlab.h @@ -39,10 +39,6 @@ public: int a_CursorX, int a_CursorY, int a_CursorZ ) override { - // Prepare sound effect - AString PlaceSound = cBlockInfo::GetPlaceSound(static_cast<BLOCKTYPE>(m_ItemType)); - float Volume = 1.0f, Pitch = 0.8f; - // Special slab handling - placing a slab onto another slab produces a dblslab instead: BLOCKTYPE ClickedBlockType; NIBBLETYPE ClickedBlockMeta; @@ -59,7 +55,6 @@ public: ((ClickedBlockMeta & 0x08) == 0) ) { - a_World.BroadcastSoundEffect(PlaceSound, a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, Volume, Pitch); if (!a_Player.PlaceBlock(a_BlockX, a_BlockY, a_BlockZ, m_DoubleSlabBlockType, ClickedBlockMeta & 0x07)) { return false; @@ -77,7 +72,6 @@ public: ((ClickedBlockMeta & 0x08) != 0) ) { - a_World.BroadcastSoundEffect(PlaceSound, a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, Volume, Pitch); if (!a_Player.PlaceBlock(a_BlockX, a_BlockY, a_BlockZ, m_DoubleSlabBlockType, ClickedBlockMeta & 0x07)) { return false; @@ -101,7 +95,6 @@ public: ((PlaceBlockMeta & 0x07) == a_EquippedItem.m_ItemDamage) // Placing the same slab sub-kind (and existing slab is single) ) { - a_World.BroadcastSoundEffect(PlaceSound, a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, Volume, Pitch); if (!a_Player.PlaceBlock(a_BlockX, a_BlockY, a_BlockZ, m_DoubleSlabBlockType, PlaceBlockMeta & 0x07)) { return false; |