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

@@ -85,6 +85,9 @@ public class BlockFloatingSpecialFlower extends BlockFloatingFlower implements I
@Override
public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos) {
if(world.getBlockState(pos).getBlock() != this)
return world.getBlockState(pos).getLightValue(world, pos);
TileEntity tile = world.getTileEntity(pos);
int currentLight = tile instanceof TileSpecialFlower ? ((TileSpecialFlower) tile).getLightValue() : -1;
if(currentLight == -1)