From 24d21453cf2cf1ad352902123c218662fad50177 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 25 Oct 2015 17:12:43 -0500 Subject: [PATCH] SPIGOT-596: Fix EntityDismountEvent --- .../0033-Entity-Mount-and-Dismount-Events.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch b/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch index 7dc7bfc9f..50ac33433 100644 --- a/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch +++ b/CraftBukkit-Patches/0033-Entity-Mount-and-Dismount-Events.patch @@ -35,4 +35,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 if (this.vehicle != null) { this.vehicle.passenger = null; } +diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/EntityLiving.java ++++ b/src/main/java/net/minecraft/server/EntityLiving.java +@@ -0,0 +0,0 @@ public abstract class EntityLiving extends Entity { + } + } + // CraftBukkit end ++ org.bukkit.Bukkit.getPluginManager().callEvent( new org.spigotmc.event.entity.EntityDismountEvent( this.getBukkitEntity(), this.vehicle.getBukkitEntity() ) ); // Spigot + + if (!this.world.isClientSide) { + this.q(this.vehicle); -- \ No newline at end of file