Drill problems
KnatteAnka opened this issue ยท 1 comments
Describe the bug
Since a1e3df3 the drill mines Dirt slow and even if drill is not powered it mines at the same speed.
Steps to Reproduce
Steps to reproduce the behavior:
1 Build latest build
2 run creative game and spawn one charged drill and one uncharged.
3A go to survival and mine dirt and see that it works slower then iron shovel.
3B mine stone or or both with charged and uncharged drill and see that it mines at the same speed.
Environment (please complete the following information with the version):
- Minecraft: 1.16
- Mod Loader: fabric-api-0.16.0+build.384-1.16.1
- jumploader-2.0.0.jar
Additional context
have tried reverting parts of src/main/java/techreborn/items/tool/DrillItem.java
@Override
public float getMiningSpeedMultiplier(Tag<Item> tag, BlockState state, ItemStack stack, LivingEntity user) {
if (Energy.of(stack).getEnergy() < cost) {
return unpoweredSpeed;
}
if (Items.WOODEN_PICKAXE.getMiningSpeedMultiplier(stack, state) > 1.0F
|| Items.WOODEN_SHOVEL.getMiningSpeedMultiplier(stack, state) > 1.0F) {
return poweredSpeed;
}
return unpoweredSpeed;
}
this does so that dirt is mined at same speed as iron shovel but the uncharged speed is not changed.
have also verified that the formula for low energy is triggered and low mining speed multiplier is set but still not working. not sure whats the reason.