Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethryan committed May 18, 2024
1 parent 98fa8f0 commit 115d821
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metad
int aMinAmount = 1;
// Max applicable fortune
if (fortune > 3) fortune = 3;
long amount = (long) new Random().nextInt((fortune - aMinAmount) + aMinAmount);
if (amount < 1) amount = 1;
long amount = (long) new Random().nextInt(fortune) + aMinAmount;
for (int i = 0; i < amount; i++) {
drops.add(
ItemUtils.getItemStackOfAmountFromOreDictNoBroken(
Expand Down

0 comments on commit 115d821

Please sign in to comment.