Biome map size clamp

This commit is contained in:
paulevsGitch 2021-03-17 23:14:39 +03:00
parent b69ce7f3b2
commit a89b2d7d18

View file

@ -1,5 +1,6 @@
package ru.betterend.world.generator;
import net.minecraft.util.math.MathHelper;
import ru.betterend.config.Configs;
public class GeneratorOptions {
@ -40,11 +41,11 @@ public class GeneratorOptions {
}
public static int getBiomeSizeLand() {
return biomeSizeLand;
return MathHelper.clamp(biomeSizeLand, 1, 8192);
}
public static int getBiomeSizeVoid() {
return biomeSizeVoid;
return MathHelper.clamp(biomeSizeVoid, 1, 8192);
}
public static boolean hasPortal() {