From fde53d8f0df9823448c00a10ce131e50c6c2ab3f Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Thu, 22 Dec 2016 22:23:50 +1000 Subject: + 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. --- src/Java/gtPlusPlus/core/util/math/MathUtils.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/core/util/math') 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]); + } } -- cgit