From c72f4b605729cd74371ab29846ea6ebd5879b359 Mon Sep 17 00:00:00 2001 From: Chiss Date: Thu, 14 Aug 2014 12:35:49 +1000 Subject: [PATCH] Dragon target cancel fix --- .../Mineplex.Core/src/mineplex/core/mount/types/Dragon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/Dragon.java b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/Dragon.java index 49b13b9d9..ac66521c5 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/mount/types/Dragon.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/mount/types/Dragon.java @@ -91,7 +91,8 @@ public class Dragon extends DragonMount @EventHandler public void DragonTargetCancel(EntityTargetEvent event) { - event.setCancelled(true); + if (GetActive().containsValue(event.getEntity())) + event.setCancelled(true); } public void SetName(String news)