mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
Add new fishing enchants. Fixes BUKKIT-5035
By: GJ <gjmcferrin@gmail.com>
This commit is contained in:
parent
8cc0d0c782
commit
647164a75d
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,8 @@ public class CraftEnchantment extends Enchantment {
|
||||||
return EnchantmentTarget.WEAPON;
|
return EnchantmentTarget.WEAPON;
|
||||||
case BOW:
|
case BOW:
|
||||||
return EnchantmentTarget.BOW;
|
return EnchantmentTarget.BOW;
|
||||||
|
case FISHING_ROD:
|
||||||
|
return EnchantmentTarget.FISHING_ROD;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -102,6 +104,10 @@ public class CraftEnchantment extends Enchantment {
|
||||||
return "ARROW_FIRE";
|
return "ARROW_FIRE";
|
||||||
case 51:
|
case 51:
|
||||||
return "ARROW_INFINITE";
|
return "ARROW_INFINITE";
|
||||||
|
case 61:
|
||||||
|
return "LUCK";
|
||||||
|
case 62:
|
||||||
|
return "LURE";
|
||||||
default:
|
default:
|
||||||
return "UNKNOWN_ENCHANT_" + target.id;
|
return "UNKNOWN_ENCHANT_" + target.id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue