also wait this was a nerf oops

This commit is contained in:
yrsegal@gmail.com 2022-05-29 22:44:42 -04:00
parent 303c307c5c
commit 2195ffae97

View file

@ -6,7 +6,6 @@ import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.PickaxeItem;
import net.minecraft.world.item.Tier;
import net.minecraft.world.item.Tiers;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
@ -15,11 +14,6 @@ public class ItemJewelerHammer extends PickaxeItem {
super(tier, damageMod, attackSpeedMod, props);
}
@Override
public int getEnchantmentValue() {
return Tiers.DIAMOND.getEnchantmentValue();
}
public static boolean shouldFailToBreak(Player player, BlockState state, BlockPos pos) {
ItemStack stack = player.getMainHandItem();
return stack.is(HexItems.JEWELER_HAMMER) && Block.isShapeFullBlock(state.getShape(player.level, pos));