From c5e9a169fa564f3b8119b6666f8df59d5a9b45c3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 10 May 2016 21:47:39 +1000 Subject: Minecraft 1.9.4 --- nms-patches/EntityItem.patch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'nms-patches/EntityItem.patch') diff --git a/nms-patches/EntityItem.patch b/nms-patches/EntityItem.patch index 5699d56e..2c8a05d7 100644 --- a/nms-patches/EntityItem.patch +++ b/nms-patches/EntityItem.patch @@ -1,14 +1,14 @@ --- a/net/minecraft/server/EntityItem.java +++ b/net/minecraft/server/EntityItem.java -@@ -4,6 +4,7 @@ - import java.util.Iterator; +@@ -5,6 +5,7 @@ + import javax.annotation.Nullable; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.bukkit.event.player.PlayerPickupItemEvent; // CraftBukkit public class EntityItem extends Entity { -@@ -15,6 +16,7 @@ +@@ -16,6 +17,7 @@ private String g; private String h; public float a; @@ -16,7 +16,7 @@ public EntityItem(World world, double d0, double d1, double d2) { super(world); -@@ -30,6 +32,11 @@ +@@ -31,6 +33,11 @@ public EntityItem(World world, double d0, double d1, double d2, ItemStack itemstack) { this(world, d0, d1, d2); @@ -28,7 +28,7 @@ this.setItemStack(itemstack); } -@@ -54,9 +61,12 @@ +@@ -55,9 +62,12 @@ this.die(); } else { super.m(); @@ -44,7 +44,7 @@ this.lastX = this.locX; this.lastY = this.locY; -@@ -92,12 +102,20 @@ +@@ -93,12 +103,20 @@ this.motY *= -0.5D; } @@ -65,7 +65,7 @@ this.die(); } -@@ -139,6 +157,7 @@ +@@ -140,6 +158,7 @@ } else if (itemstack1.count + itemstack.count > itemstack1.getMaxStackSize()) { return false; } else { @@ -73,7 +73,7 @@ itemstack1.count += itemstack.count; entityitem.pickupDelay = Math.max(entityitem.pickupDelay, this.pickupDelay); entityitem.age = Math.min(entityitem.age, this.age); -@@ -185,6 +204,11 @@ +@@ -186,6 +205,11 @@ } else if (this.getItemStack() != null && this.getItemStack().getItem() == Items.NETHER_STAR && damagesource.isExplosion()) { return false; } else { @@ -85,7 +85,7 @@ this.ao(); this.f = (int) ((float) this.f - f); if (this.f <= 0) { -@@ -230,7 +254,18 @@ +@@ -231,7 +255,18 @@ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompound("Item"); @@ -105,7 +105,7 @@ if (this.getItemStack() == null) { this.die(); } -@@ -242,6 +277,26 @@ +@@ -243,6 +278,26 @@ ItemStack itemstack = this.getItemStack(); int i = itemstack.count; -- cgit v1.2.3