summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorbibo38 <bibo38@github.com>2015-11-07 17:22:53 +0100
committerbibo38 <bibo38@github.com>2015-11-07 17:34:54 +0100
commitea55e756724d5b68a2f25b073323f7289db30a98 (patch)
tree3828e3b8daa1076eb9f07c50f4bfa4a80bd4ac4c /src/Simulator/IncrementalRedstoneSimulator.cpp
parentAdded some code improvements (diff)
downloadcuberite-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/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index a23ee8ec2..15c702585 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);
}
}