From f5648fa4b9e356d63ec969a31067d0cf9c06898f Mon Sep 17 00:00:00 2001 From: Az928 Date: Mon, 23 Oct 2017 02:02:04 +0600 Subject: [PATCH] Couldn't find implemented protection code on PMMP :/ --- src/VanillaEnchantments/Core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VanillaEnchantments/Core.php b/src/VanillaEnchantments/Core.php index d2e7b35..10aa82c 100644 --- a/src/VanillaEnchantments/Core.php +++ b/src/VanillaEnchantments/Core.php @@ -24,7 +24,7 @@ public function onEnable(){ } public function registerEnchants(){ - # $this->registerProtection(); + $this->registerProtection(); $this->registerFireProtection(); $this->registerFeatherFalling(); $this->registerBlastProtection(); @@ -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)); } public function registerSilkTouch(){ @@ -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 return new handlers\Fortune($this); } @@ -168,4 +168,4 @@ public function registerInfinity(){ Enchantment::registerEnchantment(new Enchantment(22, "Infinity", 2, 0, Enchantment::SLOT_BOW)); return new handlers\Infinity($this); } -} +} \ No newline at end of file