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;
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue