diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-18 17:11:24 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-18 17:11:24 +0200 |
commit | 195d10108b80cbb4fd5f9c12673f692231e59026 (patch) | |
tree | f80fee580a4370a293536c49913c6e86e4cc9819 | |
parent | TransAPI disappeared! (diff) | |
download | cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar.gz cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar.bz2 cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar.lz cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar.xz cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.tar.zst cuberite-195d10108b80cbb4fd5f9c12673f692231e59026.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Piston.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Piston.cpp b/source/Piston.cpp index 175cfc19a..32b5fe9fc 100644 --- a/source/Piston.cpp +++ b/source/Piston.cpp @@ -119,7 +119,8 @@ void cPiston::ExtendPiston(int pistx, int pisty, int pistz) { m_World->BroadcastBlockAction(pistx, pisty, pistz, 0, pistonMeta, E_BLOCK_PISTON); } - + + char isSticky = (char)(pistonBlock == E_BLOCK_STICKY_PISTON) * 8; m_World->BroadcastSoundEffect("tile.piston.out", pistx * 8, pisty * 8, pistz * 8, 0.5f, 0.7f); m_World->FastSetBlock( pistx, pisty, pistz, pistonBlock, pistonMeta | 0x8 ); m_World->SetServerBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, isSticky + pistonMeta); |