nossr50 5 năm trước cách đây
mục cha
commit
d1116418be

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/mining/MiningManager.java

@@ -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