public void calcLightDepths(int var1, int var2, int var3, int var4) {
        for (int x = var1; x < var1 + var3; ++x) {
            for (int z = var2; z < var2 + var4; ++z) {
                int var7 = blockers[x + z * width];

                int y = height - 1;
                while (y > 0 && !isLightBlocker(x, y, z)) {
                    --y;
                }

                blockers[x + z * width] = y;
                if (var7 != y) {
                    int var9 = var7 < y ? var7 : y;
                    var7 = var7 > y ? var7 : y;

                    for (y = 0; y < listeners.size(); ++y) {
                        listeners.get(y).queueChunks(x - 1, var9 - 1, z - 1, x + 1,
                                var7 + 1, z + 1);
                    }
                }
            }
        }
    }