Pass stack to mining speed check. Closes #2348
This commit is contained in:
parent
b1a975233a
commit
6877f6e3f2
1 changed files with 3 additions and 2 deletions
|
@ -93,10 +93,11 @@ public class DrillItem extends PickaxeItem implements EnergyHolder, ItemDurabili
|
|||
return true;
|
||||
}
|
||||
// More checks to fix #2225
|
||||
if (Items.DIAMOND_SHOVEL.getMiningSpeedMultiplier(null, blockIn) > 1.0f) {
|
||||
// Pass stack to fix #2348
|
||||
if (Items.DIAMOND_SHOVEL.getMiningSpeedMultiplier(new ItemStack(Items.DIAMOND_SHOVEL), blockIn) > 1.0f) {
|
||||
return true;
|
||||
}
|
||||
return Items.DIAMOND_PICKAXE.getMiningSpeedMultiplier(null, blockIn) > 1.0f;
|
||||
return Items.DIAMOND_PICKAXE.getMiningSpeedMultiplier(new ItemStack(Items.DIAMOND_SHOVEL), blockIn) > 1.0f;
|
||||
}
|
||||
|
||||
// MiningToolItem
|
||||
|
|
Loading…
Reference in a new issue