diff options
author | Muramasa <haydenkilloh@gmail.com> | 2016-07-28 04:15:24 +0100 |
---|---|---|
committer | Muramasa <haydenkilloh@gmail.com> | 2016-08-13 07:15:58 +0100 |
commit | ce1195d48c56bd206d01dadb61f7cf9c3057bd42 (patch) | |
tree | e81116260a06f7e29cacfecb6a62abf1f2762a5f /src/main/java/gregtech/api/util | |
parent | e6ecf4f2989eed1caedab4e0b01a13ddfd1be0b2 (diff) | |
download | GT5-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.java | 2 |
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); |