Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Couldn't find implemented protection code on PMMP :/
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAz928 authored Oct 22, 2017
1 parent 0b86b7c commit f5648fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/VanillaEnchantments/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function onEnable(){
}

public function registerEnchants(){
# $this->registerProtection();
$this->registerProtection();
$this->registerFireProtection();
$this->registerFeatherFalling();
$this->registerBlastProtection();
Expand Down Expand Up @@ -131,7 +131,7 @@ public function registerLooting(){
}

public function registerEfficiency(){
Enchantment::registerEnchantment(new Enchantment(15, "Efficiency", 1, 0, Enchantment::SLOT_TOOL));
Enchantment::registerEnchantment(new Enchantment(15, "Efficiency", 1, 0, Enchantment::SLOT_PICKAXE));

This comment has been minimized.

Copy link
@jasonw4331

jasonw4331 Oct 26, 2017

works with Axes too

}

public function registerSilkTouch(){
Expand All @@ -145,7 +145,7 @@ public function registerUnbreaking(){
}

public function registerFortune(){
Enchantment::registerEnchantment(new Enchantment(18, "Fortune", 0, 0, Enchantment::SLOT_TOOL));
Enchantment::registerEnchantment(new Enchantment(18, "Fortune", 0, 0, Enchantment::SLOT_PICKAXE)); # Not sure

This comment has been minimized.

Copy link
@jasonw4331

jasonw4331 Oct 26, 2017

works with Axes too

This comment has been minimized.

Copy link
@TheAz928

TheAz928 Oct 26, 2017

Author Owner

ik

return new handlers\Fortune($this);
}

Expand All @@ -168,4 +168,4 @@ public function registerInfinity(){
Enchantment::registerEnchantment(new Enchantment(22, "Infinity", 2, 0, Enchantment::SLOT_BOW));
return new handlers\Infinity($this);
}
}
}

0 comments on commit f5648fa

Please sign in to comment.