Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int getLightValue(IBlockAccess world, int x, int y, int z) {
- Block block = world.getBlock(x, y, z);
- if (block != this) {
- return block.getLightValue(world, x, y, z);
- }
- int meta = world.getBlockMetadata(x, y, z);
- if(meta > 8) {
- return 15;
- } else {
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement