Tiny cleanup

This commit is contained in:
Aidan Brady 2013-07-08 18:58:26 -04:00
parent 3f8deb946a
commit 1b039bce4b
2 changed files with 4 additions and 0 deletions

View file

@ -332,6 +332,7 @@ public class BlockBasic extends Block
public int getLightValue(IBlockAccess world, int x, int y, int z) public int getLightValue(IBlockAccess world, int x, int y, int z)
{ {
int metadata = world.getBlockMetadata(x, y, z); int metadata = world.getBlockMetadata(x, y, z);
switch(metadata) switch(metadata)
{ {
case 2: case 2:
@ -341,6 +342,7 @@ public class BlockBasic extends Block
case 7: case 7:
return 12; return 12;
} }
return 0; return 0;
} }

View file

@ -347,9 +347,11 @@ public class BlockTransmitter extends Block
{ {
dismantleBlock(world, x, y, z, false); dismantleBlock(world, x, y, z, false);
} }
return true; return true;
} }
} }
return false; return false;
} }