bugfix to redstone, it can climb walls again.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@81 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -457,14 +457,14 @@ void cWorld::Tick(float a_Dt)
|
||||
state = *cii;cii++;
|
||||
|
||||
//printf ("%i, %i, %i, %i\n",tempX,tempY,tempZ,state) ;
|
||||
if ( (state == 00000) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_OFF ) ) {
|
||||
FastSetBlock( tempX, tempY, tempZ, E_BLOCK_REDSTONE_TORCH_OFF, (int)GetBlockMeta( tempX, tempY, tempZ ) );
|
||||
cRedstone Redstone(this);
|
||||
Redstone.ChangeRedstone( tempX, tempY, tempZ, false );
|
||||
} else if ( (state == 11111) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_ON ) ) {
|
||||
if ( (state == 11111) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_OFF ) ) {
|
||||
FastSetBlock( tempX, tempY, tempZ, E_BLOCK_REDSTONE_TORCH_ON, (int)GetBlockMeta( tempX, tempY, tempZ ) );
|
||||
cRedstone Redstone(this);
|
||||
Redstone.ChangeRedstone( tempX, tempY, tempZ, true );
|
||||
} else if ( (state == 00000) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_ON ) ) {
|
||||
FastSetBlock( tempX, tempY, tempZ, E_BLOCK_REDSTONE_TORCH_OFF, (int)GetBlockMeta( tempX, tempY, tempZ ) );
|
||||
cRedstone Redstone(this);
|
||||
Redstone.ChangeRedstone( tempX, tempY, tempZ, false );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user