Fix interrupt

This commit is contained in:
TomTheFurry
2022-07-30 00:12:09 +08:00
parent 302a894cb3
commit 7e8ce1c695
2 changed files with 3 additions and 2 deletions
@@ -28,6 +28,7 @@ import com.google.common.collect.Sets;
import com.seibel.lod.common.wrappers.worldGeneration.BatchGenerationEnvironment;
import com.seibel.lod.common.wrappers.worldGeneration.ThreadedParameters;
import com.seibel.lod.core.a7.util.UncheckedInterruptedException;
import com.seibel.lod.core.util.LodUtil;
import net.minecraft.server.level.WorldGenRegion;
import net.minecraft.util.Mth;
@@ -88,7 +89,7 @@ public final class StepNoise {
chunk = environment.joinSync(environment.params.generator.fillFromNoise(Runnable::run, Blender.of(worldGenRegion), environment.params.randomState,
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
#endif
LodUtil.checkInterruptsUnchecked(); // Speed up termination responsiveness
UncheckedInterruptedException.throwIfInterrupted();
}
}
}
+1 -1
Submodule core updated: 695a25c73f...823da76896