disable kelpGenerationGrowthlimit because its fixes the same way in core

This commit is contained in:
gnembon committed 2019-11-08 02:46:51 -04:00
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)
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)
{
if (bound==10)
@@ -20,5 +20,5 @@ public class KelpFeatureMixin
if (limit == 0)
return random.nextInt(bound);
return 25-limit+random.nextInt(Math.min(23,limit+1));
}
}*/
}
@@ -458,7 +458,7 @@ public class CarpetSettings
)
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) {
return (newValue>=0 && newValue <=25)?newValue:null;
@@ -472,7 +472,7 @@ public class CarpetSettings
category = FEATURE,
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)
public static boolean renewableCoral = false;