summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-19 21:40:07 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-19 21:40:07 +0100
commit78f45e0bd1576a38b05b8d1083df9494a41ed644 (patch)
tree6845cc8a3d840957fb39b49d79963da2cb0d7d5c
parentMerge pull request #350 from mc-server/arrows (diff)
downloadcuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar.gz
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar.bz2
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar.lz
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar.xz
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.tar.zst
cuberite-78f45e0bd1576a38b05b8d1083df9494a41ed644.zip
-rw-r--r--source/Piston.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Piston.cpp b/source/Piston.cpp
index ed175d3e3..048cc355d 100644
--- a/source/Piston.cpp
+++ b/source/Piston.cpp
@@ -71,9 +71,6 @@ void cPiston::ExtendPiston(int pistx, int pisty, int pistz)
return;
}
- m_World->BroadcastBlockAction(pistx, pisty, pistz, 0, pistonMeta, pistonBlock);
- m_World->BroadcastSoundEffect("tile.piston.out", pistx * 8, pisty * 8, pistz * 8, 0.5f, 0.7f);
-
int dist = FirstPassthroughBlock(pistx, pisty, pistz, pistonMeta);
if (dist < 0)
{
@@ -81,6 +78,9 @@ void cPiston::ExtendPiston(int pistx, int pisty, int pistz)
return;
}
+ m_World->BroadcastBlockAction(pistx, pisty, pistz, 0, pistonMeta, pistonBlock);
+ m_World->BroadcastSoundEffect("tile.piston.out", pistx * 8, pisty * 8, pistz * 8, 0.5f, 0.7f);
+
// Drop the breakable block in the line, if appropriate:
AddDir(pistx, pisty, pistz, pistonMeta, dist + 1); // "pist" now at the breakable / empty block
BLOCKTYPE currBlock;