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,7 +110,9 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
|
|||
|
||||
@Override
|
||||
public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn) {
|
||||
stack.addEnchantment(Enchantments.SILK_TOUCH, 1);
|
||||
if (!stack.isItemEnchanted()) {
|
||||
stack.addEnchantment(Enchantments.SILK_TOUCH, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue