CavePVP-Stuff/cSpigot-master/spigot-server-Patches/0143-Refire-PlayerItemConsumeEvent-after-cancelling.patch
2023-05-01 19:59:40 +01:00

22 lines
830 B
Diff

From b8cb958fc6597a2f400fbabe57431e8f5962917c Mon Sep 17 00:00:00 2001
From: Poweruser <poweruser.rs@hotmail.com>
Date: Sun, 12 Jun 2016 20:58:54 +0200
Subject: [PATCH] Refire PlayerItemConsumeEvent after cancelling
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
index 045fe5f66..f30a2cb63 100644
--- a/src/main/java/net/minecraft/server/EntityHuman.java
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
@@ -282,6 +282,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
((EntityPlayer) this).getBukkitEntity().updateScaledHealth();
// Spigot End
}
+ this.g = this.f.n(); // Poweruser
return;
}
--
2.13.3