public void calcLightDepths(int var1, int var2, int var3, int var4) {
      for(int var5 = var1; var5 < var1 + var3; ++var5) {
         for(int var6 = var2; var6 < var2 + var4; ++var6) {
            int var7 = this.blockers[var5 + var6 * this.width];

            int var8;
            for(var8 = this.depth - 1; var8 > 0 && !this.isLightBlocker(var5, var8, var6); --var8) {
               ;
            }

            this.blockers[var5 + var6 * this.width] = var8;
            if(var7 != var8) {
               int var9 = var7 < var8?var7:var8;
               var7 = var7 > var8?var7:var8;

               for(var8 = 0; var8 < this.listeners.size(); ++var8) {
                  ((LevelRenderer)this.listeners.get(var8)).queueChunks(var5 - 1, var9 - 1, var6 - 1, var5 + 1, var7 + 1, var6 + 1);
               }
            }
         }
      }

   }