mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
22 lines
1.2 KiB
Diff
22 lines
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: md_5 <md_5@live.com.au>
|
||
|
Date: Sat, 14 Sep 2013 10:16:38 +1000
|
||
|
Subject: [PATCH] Update Inventory and Health for PlayerConsumeItemEvent
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||
|
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||
|
@@ -0,0 +0,0 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||
|
// Update client
|
||
|
if (this instanceof EntityPlayer) {
|
||
|
((EntityPlayer) this).playerConnection.sendPacket(new PacketPlayOutSetSlot((byte) 0, activeContainer.getSlot((IInventory) this.inventory, this.inventory.itemInHandIndex).index, this.f));
|
||
|
+ // Spigot Start
|
||
|
+ ((EntityPlayer) this).getBukkitEntity().updateInventory();
|
||
|
+ ((EntityPlayer) this).getBukkitEntity().updateScaledHealth();
|
||
|
+ // Spigot End
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
--
|