summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPiston.h
diff options
context:
space:
mode:
authorbibo38 <bibo38@github.com>2015-11-05 14:50:43 +0100
committerbibo38 <bibo38@github.com>2015-11-07 17:23:02 +0100
commitf35060e8b518cac8521528a7398be7a095ccc108 (patch)
tree425d62fca03468e5be2b8934c251383b37bec1ed /src/Blocks/BlockPiston.h
parentFixed pulling/pushing of breakable blocks, which are not required to be moved (diff)
downloadcuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar.gz
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar.bz2
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar.lz
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar.xz
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.tar.zst
cuberite-f35060e8b518cac8521528a7398be7a095ccc108.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockPiston.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h
index 41ef79aa6..b08ca5fee 100644
--- a/src/Blocks/BlockPiston.h
+++ b/src/Blocks/BlockPiston.h
@@ -81,6 +81,8 @@ public:
}
}
+ static Vector3i GetDirectionVec(int a_PistonMeta);
+
static void ExtendPiston(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
static void RetractPiston(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
@@ -157,7 +159,7 @@ private:
/** Tries to push a block and increases the pushed blocks variable. Returns true if the block is pushable */
static bool CanPushBlock(
int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World, bool a_RequirePushable,
- std::unordered_set<Vector3i, VectorHasher<int>> & a_BlocksPushed, NIBBLETYPE a_PistonMeta
+ std::unordered_set<Vector3i, VectorHasher<int>> & a_BlocksPushed, const Vector3i & a_PushDir
);
} ;