Fixed rare NPEs
This commit is contained in:
parent
720e965d08
commit
295f1f255f
@ -118,6 +118,11 @@ public class KitPig extends SmashKit
|
||||
return;
|
||||
}
|
||||
|
||||
if(Manager.GetGame() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (Player player : Manager.GetGame().GetPlayers(true))
|
||||
{
|
||||
if (!HasKit(player))
|
||||
|
@ -168,7 +168,7 @@ public class PerkWitherImage extends SmashPerk
|
||||
}
|
||||
}
|
||||
|
||||
if (_skeletons.get(event.getTarget().getUniqueId()).equals(event.getEntity()))
|
||||
if (event.getTarget() != null && _skeletons.get(event.getTarget().getUniqueId()).equals(event.getEntity()))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user