From 6331ad68e51f559524a52049e5b3daaa2bbb7d86 Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Thu, 2 Nov 2017 02:05:54 -0400 Subject: [PATCH] Patch a NPE in MountSpider --- .../mineplex/core/gadget/gadgets/mount/types/MountSpider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/mount/types/MountSpider.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/mount/types/MountSpider.java index 076a47942..bf57ce37b 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/mount/types/MountSpider.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/mount/types/MountSpider.java @@ -147,7 +147,7 @@ public class MountSpider extends HorseMount { final Horse horse = getActiveMounts().get(player).getEntity(); - if (!horse.getPassenger().equals(player) || !UtilEnt.isGrounded(horse)) + if (horse.getPassenger() == null || !horse.getPassenger().equals(player) || !UtilEnt.isGrounded(horse)) { continue; }