mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
SPIGOT-2918: Always call EnchantItemEvent
This commit is contained in:
parent
c6d6844254
commit
655d8407ce
@ -106,12 +106,14 @@
|
||||
this.b();
|
||||
}
|
||||
} else {
|
||||
@@ -177,24 +239,49 @@
|
||||
@@ -176,25 +238,50 @@
|
||||
if (!this.world.isClientSide) {
|
||||
List list = this.a(itemstack, i, this.costs[i]);
|
||||
|
||||
if (!list.isEmpty()) {
|
||||
- if (!list.isEmpty()) {
|
||||
- entityhuman.enchantDone(j);
|
||||
+ // CraftBukkit start
|
||||
+ // CraftBukkit start
|
||||
+ if (true || !list.isEmpty()) {
|
||||
boolean flag = itemstack.getItem() == Items.BOOK;
|
||||
+ Map<org.bukkit.enchantments.Enchantment, Integer> enchants = new java.util.HashMap<org.bukkit.enchantments.Enchantment, Integer>();
|
||||
+ for (Object obj : list) {
|
||||
|
Loading…
Reference in New Issue
Block a user