diff options
author | Jordan Byrne <draknyte1@hotmail.com> | 2018-01-08 19:08:13 +1000 |
---|---|---|
committer | Jordan Byrne <draknyte1@hotmail.com> | 2018-01-08 19:08:13 +1000 |
commit | 2b77e70b058ed0a82b3a4a163a04ec5d9ed00c67 (patch) | |
tree | acc168cb6a9f6331252cf5bd24926b46a7a366ee /src/Java/gtPlusPlus/core/util | |
parent | bcd8344c3732f08e331cf048f1f748c5b55f2812 (diff) | |
download | GT5-Unofficial-2b77e70b058ed0a82b3a4a163a04ec5d9ed00c67.tar.gz GT5-Unofficial-2b77e70b058ed0a82b3a4a163a04ec5d9ed00c67.tar.bz2 GT5-Unofficial-2b77e70b058ed0a82b3a4a163a04ec5d9ed00c67.zip |
+ Added a recipe to craft Mining Explosives.
+ Added missing file. WorldGen_GT.java.
% Tweaked Mining Explosive logic.
% Tweaked entity fuse variable in primed mining explosive.
% Swapped some XSTR's to CSPRNG's.
$ Fixed mining explosives renderer.
$ Fixed Tesla Tower attacking Items on the ground.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/math/MathUtils.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java index adb5548f1d..679757576f 100644 --- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java +++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java @@ -4,9 +4,11 @@ import java.util.Map; import java.util.Random; import gregtech.api.enums.GT_Values; +import gtPlusPlus.api.objects.CSPRNG; import gtPlusPlus.api.objects.Logger; +import gtPlusPlus.api.objects.XSTR; +import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.util.Utils; -import gtPlusPlus.xmod.gregtech.api.objects.XSTR; public class MathUtils { @@ -23,7 +25,7 @@ public class MathUtils { public static int randInt(final int min, final int max) { // Usually this can be a field rather than a method variable - final Random rand = new XSTR(); + final Random rand = CSPRNG.generate(CORE.RANDOM); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive @@ -50,7 +52,7 @@ public class MathUtils { */ public static long randLong(final long min, final long max) { // Usually this can be a field rather than a method variable - final Random rand = new XSTR(); + final Random rand = CSPRNG.generate(CORE.RANDOM); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive @@ -81,7 +83,7 @@ public class MathUtils { */ public static double randDouble(final double min, final double max) { // Usually this can be a field rather than a method variable - final Random rand = new XSTR(); + final Random rand = CSPRNG.generate(CORE.RANDOM); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive @@ -111,7 +113,7 @@ public class MathUtils { */ public static float randFloat(final float min, final float max) { // Usually this can be a field rather than a method variable - final Random rand = new XSTR(); + final Random rand = CSPRNG.generate(CORE.RANDOM); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive |