aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options
diff options
context:
space:
mode:
authorLinnea Gräf <roman.graef@gmail.com>2023-10-18 16:12:19 +0200
committerGitHub <noreply@github.com>2023-10-18 16:12:19 +0200
commite0a2f5f5991048317f5c045feca084a1413c45fd (patch)
tree7e4e8795aa98e58d6df467598b82c1c53997c869 /src/main/java/io/github/moulberry/notenoughupdates/options
parent5ad2c41fb936fbb9927aa0b73c73f93f9fd1c3a0 (diff)
downloadnotenoughupdates-e0a2f5f5991048317f5c045feca084a1413c45fd.tar.gz
notenoughupdates-e0a2f5f5991048317f5c045feca084a1413c45fd.tar.bz2
notenoughupdates-e0a2f5f5991048317f5c045feca084a1413c45fd.zip
Add calculator precision option (#882)
* Add calculator precision option * Fix loading of minecraft classes from some tests
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java
index 72521821..a9a0856e 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/separatesections/Misc.java
@@ -259,6 +259,18 @@ public class Misc {
@Expose
@ConfigOption(
+ name = "Calculator Precision",
+ desc = "Digits after the , to display in the calculator"
+ )
+ @ConfigEditorSlider(
+ minValue = 1,
+ maxValue = 100,
+ minStep = 1
+ )
+ public int calculationPrecision = 5;
+
+ @Expose
+ @ConfigOption(
name = "Enable Abiphone Warning",
desc = "Asks for confirmation when removing a contact in the abiphone"
)