Fix #1486 Crash from candle block

This commit is contained in:
mezz committed 2016-10-26 13:55:55 -07:00
1 parent c5c056750a
commit 781b4d883b
1 file changed
+2 -1
@@ -120,7 +120,8 @@ public class BlockCandle extends BlockTorch implements IItemModelRegister, ITile
@Override
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
if (((TileCandle) world.getTileEntity(pos)).isLit()) {
TileCandle tileCandle = TileUtil.getTile(world, pos, TileCandle.class);
if (tileCandle != null && tileCandle.isLit()) {
state = state.withProperty(STATE, State.ON);
}
return super.getActualState(state, world, pos);