public void onLivingUpdate() {
      if(this.worldObj.isDaytime()) {
         float var1 = this.getEntityBrightness(1.0F);
         if(var1 > 0.5F && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)) && this.rand.nextFloat() * 30.0F < (var1 - 0.4F) * 2.0F) {
            this.fire = 300;
         }
      }

      super.onLivingUpdate();
   }