diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-26 22:45:13 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-28 22:08:06 +0200 |
commit | b084f1f13fdd73e10fe296ef7d48a3c8beb95585 (patch) | |
tree | 84f4c6dc62444de0dbf5e89436ab898143bf683b /src/Blocks/BlockButton.h | |
parent | 1.13+: Send length-prefixed server Brand string (diff) | |
download | cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.gz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.bz2 cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.lz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.xz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.zst cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockButton.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockButton.h b/src/Blocks/BlockButton.h index f4994f193..aba20f8a1 100644 --- a/src/Blocks/BlockButton.h +++ b/src/Blocks/BlockButton.h @@ -47,7 +47,7 @@ public: const auto SoundToPlay = (m_BlockType == E_BLOCK_STONE_BUTTON) ? "block.stone_button.click_on" : "block.wood_button.click_on"; - a_ChunkInterface.SetBlockMeta(a_BlockPos, Meta, false); + a_ChunkInterface.SetBlockMeta(a_BlockPos, Meta); a_WorldInterface.WakeUpSimulators(a_BlockPos); a_WorldInterface.GetBroadcastManager().BroadcastSoundEffect(SoundToPlay, a_BlockPos, 0.5f, 0.6f, a_Player.GetClientHandle()); @@ -185,7 +185,7 @@ public: return; } - a_World.SetBlockMeta(Pos, Meta | 0x08, false); + a_World.SetBlockMeta(Pos, Meta | 0x08); a_World.WakeUpSimulators(Pos); // sound name is ok to be wood, because only wood gets triggered by arrow @@ -228,7 +228,7 @@ private: // Block hasn't change in the meantime; release it const auto SoundToPlayOnRelease = (Type == E_BLOCK_STONE_BUTTON) ? "block.stone_button.click_off" : "block.wood_button.click_off"; - a_World.SetBlockMeta(a_Position, Meta & 0x07, false); + a_World.SetBlockMeta(a_Position, Meta & 0x07); a_World.WakeUpSimulators(a_Position); a_World.BroadcastSoundEffect(SoundToPlayOnRelease, a_Position, 0.5f, 0.5f); } |