diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-27 04:37:30 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-27 04:37:30 +1000 |
commit | 3e2a9a9cf154f717696ae391fe8b998a6e3bbd29 (patch) | |
tree | ab9178162a23255bd31423694352f4d0e6b7f3de /src/Java/gtPlusPlus/core/util/array | |
parent | 9fa6dce3449e8d339ee8b81544ccf073bc350745 (diff) | |
download | GT5-Unofficial-3e2a9a9cf154f717696ae391fe8b998a6e3bbd29.tar.gz GT5-Unofficial-3e2a9a9cf154f717696ae391fe8b998a6e3bbd29.tar.bz2 GT5-Unofficial-3e2a9a9cf154f717696ae391fe8b998a6e3bbd29.zip |
+ Made Recipes and Material init all runnable classes, now items should generate in a proper fashion.
$ Fixed the Alloy Blast Furnace using the wrong recipe map and not outputting fluids.
% Separated GT Material and my Material recipe generation for the Blast Alloy Smelter.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/array')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/array/ArrayUtils.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/util/array/ArrayUtils.java b/src/Java/gtPlusPlus/core/util/array/ArrayUtils.java new file mode 100644 index 0000000000..ea02aaf1da --- /dev/null +++ b/src/Java/gtPlusPlus/core/util/array/ArrayUtils.java @@ -0,0 +1,18 @@ +package gtPlusPlus.core.util.array; + +import java.util.Arrays; + +public class ArrayUtils { + + public static void expandArray(Object[] someArray, Object newValueToAdd) { + Object[] series = someArray; + series = addElement(series, newValueToAdd); + } + + private static Object[] addElement(Object[] series, Object newValueToAdd) { + series = Arrays.copyOf(series, series.length + 1); + series[series.length - 1] = newValueToAdd; + return series; + } + +} |