This commit is contained in:
nossr50 2020-05-05 19:30:26 -07:00
parent 9f455f5a0d
commit d1116418be

View File

@ -181,7 +181,7 @@ public class MiningManager extends SkillManager {
// float debrisYield = yield - debrisReduction; // float debrisYield = yield - debrisReduction;
for (BlockState blockState : ores) { for (BlockState blockState : ores) {
if (RandomUtils.nextFloat() >= (yield + getOreBonus())) { if (RandomUtils.nextFloat() < (yield + getOreBonus())) {
xp += Mining.getBlockXp(blockState); xp += Mining.getBlockXp(blockState);
Misc.dropItem(Misc.getBlockCenter(blockState), new ItemStack(blockState.getType())); // Initial block that would have been dropped Misc.dropItem(Misc.getBlockCenter(blockState), new ItemStack(blockState.getType())); // Initial block that would have been dropped