aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorMuramasa <haydenkilloh@gmail.com>2016-07-28 04:15:24 +0100
committerMuramasa <haydenkilloh@gmail.com>2016-08-13 07:15:58 +0100
commitce1195d48c56bd206d01dadb61f7cf9c3057bd42 (patch)
treee81116260a06f7e29cacfecb6a62abf1f2762a5f /src/main/java/gregtech/api/util
parente6ecf4f2989eed1caedab4e0b01a13ddfd1be0b2 (diff)
downloadGT5-Unofficial-ce1195d48c56bd206d01dadb61f7cf9c3057bd42.tar.gz
GT5-Unofficial-ce1195d48c56bd206d01dadb61f7cf9c3057bd42.tar.bz2
GT5-Unofficial-ce1195d48c56bd206d01dadb61f7cf9c3057bd42.zip
Worldgen and Random changes
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/GT_BaseCrop.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/util/GT_BaseCrop.java b/src/main/java/gregtech/api/util/GT_BaseCrop.java
index c106816ba2..0171e35ff2 100644
--- a/src/main/java/gregtech/api/util/GT_BaseCrop.java
+++ b/src/main/java/gregtech/api/util/GT_BaseCrop.java
@@ -177,7 +177,7 @@ public class GT_BaseCrop extends CropCard implements ICropCardInfo {
@Override
public ItemStack getGain(ICropTile aCrop) {
int tDrop = 0;
- if (mSpecialDrops != null && (tDrop = new Random().nextInt((mSpecialDrops.length*2) + 2)) < mSpecialDrops.length && mSpecialDrops[tDrop] != null) {
+ if (mSpecialDrops != null && (tDrop = java.util.concurrent.ThreadLocalRandom.current().nextInt(0, (mSpecialDrops.length*2) + 2)) < mSpecialDrops.length && mSpecialDrops[tDrop] != null) {
return GT_Utility.copy(mSpecialDrops[tDrop]);
}
return GT_Utility.copy(mDrop);