summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemSnowball.patch
diff options
context:
space:
mode:
authorThinkofname <thinkofdeath@spigotmc.org>2016-03-30 20:50:59 +0100
committerThinkofname <thinkofdeath@spigotmc.org>2016-03-30 21:06:51 +0100
commit6e527e5b884902df883eb1a3d594ba4dc5147962 (patch)
treec066763146d5c5bb50bdf6c6896f8490c884b3df /nms-patches/ItemSnowball.patch
parent7fc5cd856e46182e727f383a911ffa46326611f1 (diff)
downloadcraftbukkit-6e527e5b884902df883eb1a3d594ba4dc5147962.tar
craftbukkit-6e527e5b884902df883eb1a3d594ba4dc5147962.tar.gz
craftbukkit-6e527e5b884902df883eb1a3d594ba4dc5147962.tar.lz
craftbukkit-6e527e5b884902df883eb1a3d594ba4dc5147962.tar.xz
craftbukkit-6e527e5b884902df883eb1a3d594ba4dc5147962.zip
Update to Minecraft 1.9.2
Diffstat (limited to 'nms-patches/ItemSnowball.patch')
-rw-r--r--nms-patches/ItemSnowball.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/ItemSnowball.patch b/nms-patches/ItemSnowball.patch
index 62b259f5..a247a662 100644
--- a/nms-patches/ItemSnowball.patch
+++ b/nms-patches/ItemSnowball.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/ItemSnowball.java
+++ b/net/minecraft/server/ItemSnowball.java
-@@ -8,17 +8,27 @@
+@@ -8,17 +8,28 @@
}
public InteractionResultWrapper<ItemStack> a(ItemStack itemstack, World world, EntityHuman entityhuman, EnumHand enumhand) {
@@ -10,8 +10,8 @@
--itemstack.count;
}
-- world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.fG, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemSnowball.i.nextFloat() * 0.4F + 0.8F));
-+ world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.fG, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemSnowball.i.nextFloat() * 0.4F + 0.8F));*/
+ world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.fH, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemSnowball.j.nextFloat() * 0.4F + 0.8F));
++ */
if (!world.isClientSide) {
EntitySnowball entitysnowball = new EntitySnowball(world, entityhuman);
@@ -22,7 +22,7 @@
+ --itemstack.count;
+ }
+
-+ world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.fG, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemSnowball.i.nextFloat() * 0.4F + 0.8F));
++ world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.fH, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemSnowball.j.nextFloat() * 0.4F + 0.8F));
+ } else if (entityhuman instanceof EntityPlayer) {
+ ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory();
+ }