Patch a NPE in MountSpider

This commit is contained in:
AlexTheCoder 2017-11-02 02:05:54 -04:00
parent c0fe6430fa
commit 6331ad68e5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}