diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 04:04:56 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 04:04:56 +0100 |
commit | 9e77db8e3d4f8e046c1db26d9889f440e761dc38 (patch) | |
tree | 3c4bf05ff03d0d93bd3b98cabbd7e1e0ac8a5913 /source/cWorld.cpp | |
parent | Redstone clocks now work. even one clocks. torches don't update themselves when placed yet, but redstone wire updates the torch. Fixed a bug with piston animations. (diff) | |
download | cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar.gz cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar.bz2 cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar.lz cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar.xz cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.tar.zst cuberite-9e77db8e3d4f8e046c1db26d9889f440e761dc38.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index ce5f2ed7a..3457f47dd 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -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 );
}
}
|