diff options
author | worktycho <work.tycho@gmail.com> | 2015-11-07 19:45:59 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-11-07 19:45:59 +0100 |
commit | e85082d2f1161fa29d0a04c87b35cab1252ff143 (patch) | |
tree | f3dfcaa95ccf110bada016d20aac3c3446d3d501 /src/Simulator/IncrementalRedstoneSimulator.cpp | |
parent | Merge pull request #2621 from Gargaj/pressureplatepower (diff) | |
parent | Refactored code to use vectors in the cPistonHandler class (diff) | |
download | cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.gz cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.bz2 cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.lz cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.xz cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.zst cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.zip |
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp index 7ee67ce03..b13ba9303 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.cpp +++ b/src/Simulator/IncrementalRedstoneSimulator.cpp @@ -882,11 +882,11 @@ void cIncrementalRedstoneSimulator::HandlePiston(int a_RelBlockX, int a_RelBlock if (IsPistonPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ, m_Chunk->GetMeta(a_RelBlockX, a_RelBlockY, a_RelBlockZ) & 0x7)) // We only want the bottom three bits (4th controls extended-ness) { - GetHandlerCompileTime<E_BLOCK_PISTON>::type::ExtendPiston(BlockX, a_RelBlockY, BlockZ, &this->m_World); + GetHandlerCompileTime<E_BLOCK_PISTON>::type::ExtendPiston(Vector3i(BlockX, a_RelBlockY, BlockZ), &this->m_World); } else { - GetHandlerCompileTime<E_BLOCK_PISTON>::type::RetractPiston(BlockX, a_RelBlockY, BlockZ, &this->m_World); + GetHandlerCompileTime<E_BLOCK_PISTON>::type::RetractPiston(Vector3i(BlockX, a_RelBlockY, BlockZ), &this->m_World); } } |