--- a/net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java
+++ b/net/minecraft/util/datafix/fixes/ChunkHeightAndBiomeFix.java
@@ -215,12 +215,14 @@
             p_184910_.setValue(true);
 
             for(int l = 0; l < 24; ++l) {
-                dynamic[l] = makeBiomeContainer(p_184907_, p_184967_ -> getOldBiome(aint, l * 64 + p_184967_));
+                int l_f = l;
+                dynamic[l] = makeBiomeContainer(p_184907_, p_184967_ -> getOldBiome(aint, l_f * 64 + p_184967_));
             }
         } else if (aint != null && aint.length == 1024) {
             for(int i = 0; i < 16; ++i) {
+                int i_f = i;
                 int j = i - p_184909_;
-                dynamic[j] = makeBiomeContainer(p_184907_, p_184954_ -> getOldBiome(aint, i * 64 + p_184954_));
+                dynamic[j] = makeBiomeContainer(p_184907_, p_184954_ -> getOldBiome(aint, i_f * 64 + p_184954_));
             }
 
             if (p_184908_) {
