mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Update config to include comments (#108)
* Add comments to configs * Removed unused options * Added a few of the newer options mainline Mekanism supports * Also list the default values in the MekanismConfig class for easier comparision * Change spacing slightly for tools config in code * Add some of the missing generator config comments * Config comments for tiers, and add missing comment for MinerSilkMultiplier * Config comments for rest of generators module * Fix which stick to sawdust recipe * Config comments for tools * Config comments for armor * Add warning to DM radius comment, and fix a couple things addressed in PR comments
This commit is contained in:
1 parent
1b6cfd37e9
commit
5a67067f07
18 files changed
+751
-480
No files matched your search
@@ -8,11 +8,12 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.api.EnumColor;
|
||||
import mekanism.api.TileNetworkList;
|
||||
import mekanism.client.render.MekanismRenderer;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.OreDictCache;
|
||||
import mekanism.api.TileNetworkList;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.content.miner.MItemStackFilter;
|
||||
import mekanism.common.content.miner.MMaterialFilter;
|
||||
import mekanism.common.content.miner.MModIDFilter;
|
||||
@@ -339,7 +340,7 @@ public class GuiDigitalMinerConfig extends GuiMekanismTile<TileEntityDigitalMine
|
||||
String prevMax = maxField != null ? maxField.getText() : "";
|
||||
|
||||
radiusField = new GuiTextField(1, fontRenderer, guiWidth + 12, guiHeight + 67, 26, 11);
|
||||
radiusField.setMaxStringLength(2);
|
||||
radiusField.setMaxStringLength(Integer.toString(general.digitalMinerMaxRadius).length());
|
||||
radiusField.setText(prevRad);
|
||||
|
||||
minField = new GuiTextField(2, fontRenderer, guiWidth + 12, guiHeight + 92, 26, 11);
|
||||
@@ -572,7 +573,7 @@ public class GuiDigitalMinerConfig extends GuiMekanismTile<TileEntityDigitalMine
|
||||
|
||||
private void setRadius() {
|
||||
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()), general.digitalMinerMaxRadius));
|
||||
|
||||
TileNetworkList data = TileNetworkList.withContents(6, toUse);
|
||||
|
||||
|
||||
Reference in new issue
Block a user