diff options
author | md_5 <git@md-5.net> | 2016-12-21 07:00:00 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-12-21 07:00:00 +1100 |
commit | 8ea0c87f515290c35baf0029f7b2e046c1ff49cb (patch) | |
tree | 3ac51dcfdc206a175b73ec4013bd53c423e9b6e4 /nms-patches/ItemFishingRod.patch | |
parent | c8ff65136f23a3c2770b8d9ca508f61927f8acba (diff) | |
download | craftbukkit-8ea0c87f515290c35baf0029f7b2e046c1ff49cb.tar craftbukkit-8ea0c87f515290c35baf0029f7b2e046c1ff49cb.tar.gz craftbukkit-8ea0c87f515290c35baf0029f7b2e046c1ff49cb.tar.lz craftbukkit-8ea0c87f515290c35baf0029f7b2e046c1ff49cb.tar.xz craftbukkit-8ea0c87f515290c35baf0029f7b2e046c1ff49cb.zip |
Update to Minecraft 1.11.1
Diffstat (limited to 'nms-patches/ItemFishingRod.patch')
-rw-r--r-- | nms-patches/ItemFishingRod.patch | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nms-patches/ItemFishingRod.patch b/nms-patches/ItemFishingRod.patch index 0c8cee22..fb2f9fbd 100644 --- a/nms-patches/ItemFishingRod.patch +++ b/nms-patches/ItemFishingRod.patch @@ -8,14 +8,19 @@ public class ItemFishingRod extends Item { public ItemFishingRod() { -@@ -19,9 +21,18 @@ +@@ -19,7 +21,6 @@ itemstack.damage(i, entityhuman); entityhuman.a(enumhand); } else { - world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.I, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemFishingRod.j.nextFloat() * 0.4F + 0.8F)); if (!world.isClientSide) { -+ // CraftBukkit start EntityFishingHook entityfishinghook = new EntityFishingHook(world, entityhuman); + int j = EnchantmentManager.c(itemstack); +@@ -34,6 +35,17 @@ + entityfishinghook.b(k); + } + ++ // CraftBukkit start + PlayerFishEvent playerFishEvent = new PlayerFishEvent((org.bukkit.entity.Player) entityhuman.getBukkitEntity(), null, (org.bukkit.entity.Fish) entityfishinghook.getBukkitEntity(), PlayerFishEvent.State.FISHING); + world.getServer().getPluginManager().callEvent(playerFishEvent); + @@ -25,6 +30,7 @@ + } + world.a((EntityHuman) null, entityhuman.locX, entityhuman.locY, entityhuman.locZ, SoundEffects.I, SoundCategory.NEUTRAL, 0.5F, 0.4F / (ItemFishingRod.j.nextFloat() * 0.4F + 0.8F)); + // CraftBukkit end - ++ world.addEntity(entityfishinghook); } + |