mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
add configurable radius for digital miner #55
max configurable range is 64
This commit is contained in:
3 files changed
+7
-5
No files matched your search
@@ -9,6 +9,7 @@ import java.util.Set;
|
||||
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.api.MekanismConfig;
|
||||
import mekanism.client.render.MekanismRenderer;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.common.Mekanism;
|
||||
@@ -683,7 +684,7 @@ public class GuiDigitalMinerConfig extends GuiMekanism
|
||||
{
|
||||
if(!radiusField.getText().isEmpty())
|
||||
{
|
||||
int toUse = Math.max(0, Math.min(Integer.parseInt(radiusField.getText()), 32));
|
||||
int toUse = Math.max(0, Math.min(Integer.parseInt(radiusField.getText()), MekanismConfig.general.digitalMinerMaxRadius));
|
||||
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(6);
|
||||
|
||||
Reference in new issue
Block a user