aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
diff options
context:
space:
mode:
authorkr45732 <52721908+kr45732@users.noreply.github.com>2022-08-05 14:53:17 -0400
committerGitHub <noreply@github.com>2022-08-05 20:53:17 +0200
commit6d2c47744663309c4297a93ff9311e9074251fa1 (patch)
tree32cd1e14153dd21acf6ec8d5a41df298fe359e9d /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
parent1b6b70610fb2b486ecca664806b57b949526b388 (diff)
downloadnotenoughupdates-6d2c47744663309c4297a93ff9311e9074251fa1.tar.gz
notenoughupdates-6d2c47744663309c4297a93ff9311e9074251fa1.tar.bz2
notenoughupdates-6d2c47744663309c4297a93ff9311e9074251fa1.zip
Add weight to pv (#201)
* Finished senither weight * Fixed lily weight * move file and add senither weight * Impl weight * Remove unnecessary stuff * undo nw change * fix stuff * Update 2.1.md * why on earth would you do this 🙂 Co-authored-by: nopo <noahogno@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
index f45b840c..4d546505 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
@@ -668,6 +668,10 @@ public class Utils {
return (float) Math.round(value * scale) / scale;
}
+ public static int roundToNearestInt(double value) {
+ return (int) Math.round(value);
+ }
+
// Parses Roman numerals, allowing for single character irregular subtractive notation (e.g. IL is 49, IIL is invalid)
public static int parseRomanNumeral(String input) {
int prevVal = 0;