Merge pull request #1588 from YuRaNnNzZZ/1.12-rockcutterfix
Fix for Rock Cutter getting an enchant on every re-craft
This commit is contained in:
commit
0ea442a993
1 changed files with 3 additions and 1 deletions
|
@ -110,8 +110,10 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {
|
public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {
|
||||||
|
if (!stack.isItemEnchanted()) {
|
||||||
stack.addEnchantment(Enchantments.SILK_TOUCH, 1);
|
stack.addEnchantment(Enchantments.SILK_TOUCH, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public double getDurabilityForDisplay(ItemStack stack) {
|
public double getDurabilityForDisplay(ItemStack stack) {
|
||||||
|
|
Loading…
Reference in a new issue