Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Enchantment Name Support - EnchantCommand #2009

Merged
merged 4 commits into from
Oct 1, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Enchantment.php
  • Loading branch information
Jake authored Oct 1, 2016
commit 3037b09376cb2483a6e5822f8c3c71181c050ff2
2 changes: 1 addition & 1 deletion src/pocketmine/item/enchantment/Enchantment.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public static function getEnchantmentByName($name){
return self::getEnchantment(constant(Enchantment::class . "::TYPE_FISHING_" . strtoupper($name)));
}
else{
return new Enchantment(self::TYPE_INVALID, "unknown", 0, 0, 0);
return new Enchantment(self::TYPE_INVALID, "unknown", 0, 0, 0);
}
}

Expand Down