Fix amount of items dropping from small ores

This commit is contained in:
Exidex 2017-04-12 01:07:10 +02:00
parent 596d135873
commit bf97331139

View file

@ -268,13 +268,15 @@ public class GT_Block_GeneratedOres extends GT_Generic_Block {
}
}
tStack = GT_OreDictUnificator.get(OrePrefixes.dustImpure, aBaseMaterial, 1L);
if(tStack != null && tRandom.nextInt(4) == 0) {
tStack = GT_OreDictUnificator.get(tRandom.nextInt(3) > 0 ? OrePrefixes.dustImpure : OrePrefixes.dust, aBaseMaterial, 1L);
if(tStack != null && tRandom.nextInt(3 + fortune) > 1) {
rList.add(tStack);
}
if(tSelector.size() > 0) {
rList.add(GT_Utility.copyAmount(1L, tSelector.get(tRandom.nextInt(tSelector.size()))));
for (int i = 0, j = Math.max(1, aMaterial.mOreMultiplier + (fortune > 0 ? tRandom.nextInt(1 + fortune * aMaterial.mOreMultiplier) : 0) / 2); i < j; i++) {
rList.add(GT_Utility.copyAmount(1L, tSelector.get(tRandom.nextInt(tSelector.size()))));
}
}
}
return rList;