From af92fcc8be9e55deefddfbbbd0aa802a2ac18cdb Mon Sep 17 00:00:00 2001 From: kyrptonaught Date: Tue, 8 Oct 2019 14:19:37 -0400 Subject: [PATCH] Raised limits --- src/main/java/net/kyrptonaught/diggusmaximus/Excavate.java | 2 +- .../diggusmaximus/config/modmenu/ModMenuIntegration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/kyrptonaught/diggusmaximus/Excavate.java b/src/main/java/net/kyrptonaught/diggusmaximus/Excavate.java index 273a5e5..6d4a744 100644 --- a/src/main/java/net/kyrptonaught/diggusmaximus/Excavate.java +++ b/src/main/java/net/kyrptonaught/diggusmaximus/Excavate.java @@ -21,7 +21,7 @@ class Excavate { private ItemStack tool; private World world; private static final Set cube = BlockPos.stream(-1, -1, -1, 1, 1, 1).map(BlockPos::toImmutable).collect(Collectors.toSet()); - private final int maxMined = Math.min(DiggusMaximusMod.getOptions().maxMinedBlocks, 1024); + private final int maxMined = Math.min(DiggusMaximusMod.getOptions().maxMinedBlocks, 2048); private final double maxDistance = Math.min(DiggusMaximusMod.getOptions().maxMineDistance + 1, 128); private Deque points = new ArrayDeque<>(); diff --git a/src/main/java/net/kyrptonaught/diggusmaximus/config/modmenu/ModMenuIntegration.java b/src/main/java/net/kyrptonaught/diggusmaximus/config/modmenu/ModMenuIntegration.java index b676825..4dacfe1 100644 --- a/src/main/java/net/kyrptonaught/diggusmaximus/config/modmenu/ModMenuIntegration.java +++ b/src/main/java/net/kyrptonaught/diggusmaximus/config/modmenu/ModMenuIntegration.java @@ -40,7 +40,7 @@ public String getModId() { category.addEntry(new KeyBindEntry("key.diggusmaximus.config.hotkey", options.keybinding, key -> options.keybinding = key)); category.addEntry(entryBuilder.startBooleanToggle("key.diggusmaximus.config.minediag", options.mineDiag).setSaveConsumer(val -> options.mineDiag = val).setDefaultValue(true).build()); - category.addEntry(entryBuilder.startIntField("key.diggusmaximus.config.maxmine", options.maxMinedBlocks).setSaveConsumer(val -> options.maxMinedBlocks = val).setDefaultValue(40).setMin(1).setMax(1024).build()); + category.addEntry(entryBuilder.startIntField("key.diggusmaximus.config.maxmine", options.maxMinedBlocks).setSaveConsumer(val -> options.maxMinedBlocks = val).setDefaultValue(40).setMin(1).setMax(2048).build()); category.addEntry(entryBuilder.startIntField("key.diggusmaximus.config.maxdistance", options.maxMineDistance).setSaveConsumer(val -> options.maxMineDistance = val).setDefaultValue(10).setMin(1).setMax(128).build()); category.addEntry(entryBuilder.startBooleanToggle("key.diggusmaximus.config.autopickup", options.autoPickup).setSaveConsumer(val -> options.autoPickup = val).setDefaultValue(true).build());