From 694b7ad4599caad9fb38a8f21cb42f81eb7c33cb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 14 Dec 2016 14:38:55 +1100 Subject: [PATCH] SPIGOT-2918: Always call EnchantItemEvent By: md_5 --- paper-server/nms-patches/ContainerEnchantTable.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-server/nms-patches/ContainerEnchantTable.patch b/paper-server/nms-patches/ContainerEnchantTable.patch index 71e79dd77a..8072aa1c2d 100644 --- a/paper-server/nms-patches/ContainerEnchantTable.patch +++ b/paper-server/nms-patches/ContainerEnchantTable.patch @@ -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 enchants = new java.util.HashMap(); + for (Object obj : list) {