aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util/math
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-26 16:28:16 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-04-26 16:28:16 +1000
commit915cb904401ec3b67180baa02910efcaaf21370e (patch)
tree8d13cc10af252e091abd4a62b7280c37c75fcfab /src/Java/gtPlusPlus/core/util/math
parentf20f36779767e4318ad12b9bc464f1f8010eb42b (diff)
downloadGT5-Unofficial-915cb904401ec3b67180baa02910efcaaf21370e.tar.gz
GT5-Unofficial-915cb904401ec3b67180baa02910efcaaf21370e.tar.bz2
GT5-Unofficial-915cb904401ec3b67180baa02910efcaaf21370e.zip
+ Added some Items specifically for running Digital Tree Farms.
+ Added some Common Energy Utility Classes. + Added ASM to fix handling of hatch slots for busses. (Partial implementation)
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/math')
-rw-r--r--src/Java/gtPlusPlus/core/util/math/MathUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
index 4ba9d54271..3cef3c511f 100644
--- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java
+++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java
@@ -692,8 +692,8 @@ 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);
+ public static int getValueWithinRange(int i, int aMin, int aMax) {
+ int aAmount = Math.max(Math.min(i, aMax), aMin);
return aAmount;
}