Skip to content

Commit

Permalink
Fixes #81
Browse files Browse the repository at this point in the history
There was mistake in sign. There should be "+ 1" instead of "-1"
  • Loading branch information
BONNe committed Dec 13, 2020
1 parent 93d0aa3 commit 31c0a32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private boolean processBlockReplacement(Block block, @Nullable GeneratorTierObje
if (itemStack != null)
{
ItemStack drop = itemStack.clone();
drop.setAmount(this.random.nextInt(generatorTier.getMaxTreasureAmount() - 1) + 1);
drop.setAmount(this.random.nextInt(generatorTier.getMaxTreasureAmount() + 1) + 1);

// drop item naturally in the location of the block
block.getWorld().dropItemNaturally(block.getLocation(), drop);
Expand Down

0 comments on commit 31c0a32

Please sign in to comment.