From bae54ee7bd507f4dde672069f44101ffbcb1656a Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 6 Mar 2012 22:17:36 +0000 Subject: Sticky pistons should work as well now git-svn-id: http://mc-server.googlecode.com/svn/trunk@379 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cRedstoneSimulator.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') diff --git a/source/cRedstoneSimulator.cpp b/source/cRedstoneSimulator.cpp index be93c6338..652d5a943 100644 --- a/source/cRedstoneSimulator.cpp +++ b/source/cRedstoneSimulator.cpp @@ -335,6 +335,7 @@ void cRedstoneSimulator::HandleChange( const Vector3i & a_BlockPos ) switch( Block ) { case E_BLOCK_PISTON: + case E_BLOCK_STICKY_PISTON: if( IsPowered( pos ) ) { cPiston Piston( m_World ); @@ -371,6 +372,7 @@ bool cRedstoneSimulator::PowerBlock( const Vector3i & a_BlockPos, const Vector3i } break; case E_BLOCK_PISTON: + case E_BLOCK_STICKY_PISTON: { m_RefreshPistons.push_back( a_BlockPos ); } @@ -419,6 +421,7 @@ int cRedstoneSimulator::UnPowerBlock( const Vector3i & a_BlockPos, const Vector3 } break; case E_BLOCK_PISTON: + case E_BLOCK_STICKY_PISTON: { m_RefreshPistons.push_back( a_BlockPos ); } -- cgit v1.2.3