Biome map size clamp
This commit is contained in:
parent
b69ce7f3b2
commit
a89b2d7d18
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
package ru.betterend.world.generator;
|
package ru.betterend.world.generator;
|
||||||
|
|
||||||
|
import net.minecraft.util.math.MathHelper;
|
||||||
import ru.betterend.config.Configs;
|
import ru.betterend.config.Configs;
|
||||||
|
|
||||||
public class GeneratorOptions {
|
public class GeneratorOptions {
|
||||||
|
@ -40,11 +41,11 @@ public class GeneratorOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getBiomeSizeLand() {
|
public static int getBiomeSizeLand() {
|
||||||
return biomeSizeLand;
|
return MathHelper.clamp(biomeSizeLand, 1, 8192);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getBiomeSizeVoid() {
|
public static int getBiomeSizeVoid() {
|
||||||
return biomeSizeVoid;
|
return MathHelper.clamp(biomeSizeVoid, 1, 8192);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean hasPortal() {
|
public static boolean hasPortal() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue