diff options
author | bibo38 <bibo38@github.com> | 2015-11-07 17:22:53 +0100 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-11-07 17:34:54 +0100 |
commit | ea55e756724d5b68a2f25b073323f7289db30a98 (patch) | |
tree | 3828e3b8daa1076eb9f07c50f4bfa4a80bd4ac4c /src/Blocks/BlockPiston.h | |
parent | Added some code improvements (diff) | |
download | cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar.gz cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar.bz2 cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar.lz cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar.xz cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.tar.zst cuberite-ea55e756724d5b68a2f25b073323f7289db30a98.zip |
Diffstat (limited to 'src/Blocks/BlockPiston.h')
-rw-r--r-- | src/Blocks/BlockPiston.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h index 82f079954..e0066e8ab 100644 --- a/src/Blocks/BlockPiston.h +++ b/src/Blocks/BlockPiston.h @@ -84,8 +84,8 @@ public: /** Converts piston block's metadata into a unit vector representing the direction in which the piston will extend. */ static Vector3i MetadataToOffset(NIBBLETYPE 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); + static void ExtendPiston(Vector3i a_BlockPos, cWorld * a_World); + static void RetractPiston(Vector3i a_BlockPos, cWorld * a_World); virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override { @@ -150,7 +150,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, + const Vector3i & a_BlockPos, cWorld * a_World, bool a_RequirePushable, Vector3iSet & a_BlocksPushed, const Vector3i & a_PushDir ); |