Add workarounds for the silly forge light bug. Closes #221, probably closes #251 as well

This commit is contained in:
Vincent Lee committed 2016-05-03 11:31:59 -05:00
1 parent 7a66a9756b
commit f24409f336
11 files changed
+27

No files matched your search

@@ -131,6 +131,8 @@ public class BlockAltar extends BlockMod implements ILexiconable {
@Override
public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) {
if(world.getBlockState(pos).getBlock() != this)
return world.getBlockState(pos).getLightValue(world, pos);
TileAltar tile = (TileAltar) world.getTileEntity(pos);
return (tile != null && tile.hasLava) ? 15 : 0;
}