2014-01-22 19:19:39 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								From e4d29a379dcd02ff709d16a3653384c073777c61 Mon Sep 17 00:00:00 2001
							 | 
						
					
						
							
								
									
										
										
										
											2013-09-14 10:16:46 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								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
							 | 
						
					
						
							
								
									
										
										
										
											2013-12-01 18:59:45 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								index f034d30..c58b21b 100644
							 | 
						
					
						
							
								
									
										
										
										
											2013-09-14 10:16:46 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								--- a/src/main/java/net/minecraft/server/EntityHuman.java
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								+++ b/src/main/java/net/minecraft/server/EntityHuman.java
							 | 
						
					
						
							
								
									
										
										
										
											2013-12-01 14:40:53 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								@@ -277,6 +277,10 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
							 | 
						
					
						
							
								
									
										
										
										
											2013-09-14 10:16:46 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                 // Update client
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                 if (this instanceof EntityPlayer) {
							 | 
						
					
						
							
								
									
										
										
										
											2013-12-01 14:40:53 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                     ((EntityPlayer) this).playerConnection.sendPacket(new PacketPlayOutSetSlot((byte) 0, activeContainer.a((IInventory) this.inventory, this.inventory.itemInHandIndex).index, this.f));
							 | 
						
					
						
							
								
									
										
										
										
											2013-09-14 10:16:46 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								+                    // Spigot Start
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								+                    ((EntityPlayer) this).getBukkitEntity().updateInventory();
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								+                    ((EntityPlayer) this).getBukkitEntity().updateScaledHealth();
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								+                    // Spigot End
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                 }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                 return;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								             }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								-- 
							 | 
						
					
						
							
								
									
										
										
										
											2013-12-01 14:40:53 +11:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								1.8.3.2
							 | 
						
					
						
							
								
									
										
										
										
											2013-09-14 10:16:46 +10:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 |