Sticky pistons should work as well now
git-svn-id: http://mc-server.googlecode.com/svn/trunk@379 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
b20fa171a4
commit
bae54ee7bd
@ -335,6 +335,7 @@ void cRedstoneSimulator::HandleChange( const Vector3i & a_BlockPos )
|
|||||||
switch( Block )
|
switch( Block )
|
||||||
{
|
{
|
||||||
case E_BLOCK_PISTON:
|
case E_BLOCK_PISTON:
|
||||||
|
case E_BLOCK_STICKY_PISTON:
|
||||||
if( IsPowered( pos ) )
|
if( IsPowered( pos ) )
|
||||||
{
|
{
|
||||||
cPiston Piston( m_World );
|
cPiston Piston( m_World );
|
||||||
@ -371,6 +372,7 @@ bool cRedstoneSimulator::PowerBlock( const Vector3i & a_BlockPos, const Vector3i
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case E_BLOCK_PISTON:
|
case E_BLOCK_PISTON:
|
||||||
|
case E_BLOCK_STICKY_PISTON:
|
||||||
{
|
{
|
||||||
m_RefreshPistons.push_back( a_BlockPos );
|
m_RefreshPistons.push_back( a_BlockPos );
|
||||||
}
|
}
|
||||||
@ -419,6 +421,7 @@ int cRedstoneSimulator::UnPowerBlock( const Vector3i & a_BlockPos, const Vector3
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case E_BLOCK_PISTON:
|
case E_BLOCK_PISTON:
|
||||||
|
case E_BLOCK_STICKY_PISTON:
|
||||||
{
|
{
|
||||||
m_RefreshPistons.push_back( a_BlockPos );
|
m_RefreshPistons.push_back( a_BlockPos );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user