Advertisement
Guest User

Untitled

a guest
Jul 17th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. @Override
  2. public int getLightValue(IBlockAccess world, int x, int y, int z) {
  3. Block block = world.getBlock(x, y, z);
  4. if (block != this) {
  5. return block.getLightValue(world, x, y, z);
  6. }
  7.  
  8. int meta = world.getBlockMetadata(x, y, z);
  9. if(meta > 8) {
  10. return 15;
  11. } else {
  12. return 0;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement