diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-22 22:23:50 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-22 22:23:50 +1000 |
commit | fde53d8f0df9823448c00a10ce131e50c6c2ab3f (patch) | |
tree | 20224889874add1ba80a483f0d5216ff2d6275c7 /src/Java/gtPlusPlus/core/util/math | |
parent | e95b35542d8de340835c00d4d21b527350d0cd6c (diff) | |
download | GT5-Unofficial-fde53d8f0df9823448c00a10ce131e50c6c2ab3f.tar.gz GT5-Unofficial-fde53d8f0df9823448c00a10ce131e50c6c2ab3f.tar.bz2 GT5-Unofficial-fde53d8f0df9823448c00a10ce131e50c6c2ab3f.zip |
+ Added a Molten Li2BeF4 fluid.
% Modified BaseItemComponent.java to support custom cell generation more easily.
+ Added a LFTR test recipe.
+ Added LFTR recipe support.
% Changed FirePit Model.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/math')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/math/MathUtils.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java index 75d8452975..c864df491c 100644 --- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java +++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java @@ -258,6 +258,13 @@ public class MathUtils { return result; } - + final public static int getRgbAsHex(short[] RGBA){ + + int returnValue = Utils.rgbtoHexValue(RGBA[0], RGBA[1], RGBA[2]); + if (returnValue == 0){ + return (int) 0; + } + return Utils.rgbtoHexValue(RGBA[0], RGBA[1], RGBA[2]); + } } |