summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockPiston.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h
index f8851e091..0001a5787 100644
--- a/src/Blocks/BlockPiston.h
+++ b/src/Blocks/BlockPiston.h
@@ -81,6 +81,9 @@ public:
}
}
+ /** This method converts the magic piston metadata into a direction vector.
+ This vector has a length of 1 and points into the direction, in which the piston will extend.
+ */
static Vector3i GetDirectionVec(int a_PistonMeta);
static void ExtendPiston(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);