disable kelpGenerationGrowthlimit because its fixes the same way in core
This commit is contained in:
1 parent
ec19e37a74
commit
336b1070a3
2 files changed
+4
-4
No files matched your search
@@ -11,7 +11,7 @@ import java.util.Random;
|
|||||||
@Mixin(KelpFeature.class)
|
@Mixin(KelpFeature.class)
|
||||||
public class KelpFeatureMixin
|
public class KelpFeatureMixin
|
||||||
{
|
{
|
||||||
@Redirect(method = "method_13460", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextInt(I)I"))
|
/*@Redirect(method = "method_13460", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextInt(I)I"))
|
||||||
private int getRandom(Random random, int bound)
|
private int getRandom(Random random, int bound)
|
||||||
{
|
{
|
||||||
if (bound==10)
|
if (bound==10)
|
||||||
@@ -20,5 +20,5 @@ public class KelpFeatureMixin
|
|||||||
if (limit == 0)
|
if (limit == 0)
|
||||||
return random.nextInt(bound);
|
return random.nextInt(bound);
|
||||||
return 25-limit+random.nextInt(Math.min(23,limit+1));
|
return 25-limit+random.nextInt(Math.min(23,limit+1));
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
@@ -458,7 +458,7 @@ public class CarpetSettings
|
|||||||
)
|
)
|
||||||
public static boolean disableSpawnChunks = false;
|
public static boolean disableSpawnChunks = false;
|
||||||
|
|
||||||
private static class KelpLimit extends Validator<Integer>
|
/*private static class KelpLimit extends Validator<Integer>
|
||||||
{
|
{
|
||||||
@Override public Integer validate(ServerCommandSource source, ParsedRule<Integer> currentRule, Integer newValue, String string) {
|
@Override public Integer validate(ServerCommandSource source, ParsedRule<Integer> currentRule, Integer newValue, String string) {
|
||||||
return (newValue>=0 && newValue <=25)?newValue:null;
|
return (newValue>=0 && newValue <=25)?newValue:null;
|
||||||
@@ -472,7 +472,7 @@ public class CarpetSettings
|
|||||||
category = FEATURE,
|
category = FEATURE,
|
||||||
validate = KelpLimit.class
|
validate = KelpLimit.class
|
||||||
)
|
)
|
||||||
public static int kelpGenerationGrowthLimit = 25;
|
public static int kelpGenerationGrowthLimit = 25;*/
|
||||||
|
|
||||||
@Rule(desc = "Coral structures will grow with bonemeal from coral plants", category = FEATURE)
|
@Rule(desc = "Coral structures will grow with bonemeal from coral plants", category = FEATURE)
|
||||||
public static boolean renewableCoral = false;
|
public static boolean renewableCoral = false;
|
||||||
|
|||||||
Reference in new issue
Block a user