aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util/math
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-24 17:55:18 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-24 17:55:18 +1000
commitddefc4f7b11a3c0fab7f89416beac017634e58e0 (patch)
tree154fe1f000448689a9ef5c2e0d1885e3144c2f6c /src/Java/gtPlusPlus/core/util/math
parentea049ad62ba64a414fccfa5cbb875d72e7e94d00 (diff)
downloadGT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.tar.gz
GT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.tar.bz2
GT5-Unofficial-ddefc4f7b11a3c0fab7f89416beac017634e58e0.zip
% More work on rewriting the Tree Farmer.
% Renamed Tree Farmer Casing. % Cleaned up a few imports. $ Fixed assorted minor bugs with Multis. $ Fixed Issue with GT_Utilities via ASM.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/math')
-rw-r--r--src/Java/gtPlusPlus/core/util/math/MathUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
index f9a4d8f548..4ba9d54271 100644
--- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java
+++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
@@ -692,4 +692,9 @@ public class MathUtils {
return Math.max(Math.min(aInput, aMax), aMin);
}
+ public static int getValueWithinRange(byte aInput, int aMin, int aMax) {
+ int aAmount = Math.max(Math.min(aInput, aMax), aMin);
+ return aAmount;
+ }
+
}