Fix NPE on zombie infection
This commit is contained in:
parent
973666a42f
commit
42ebb95db1
@ -253,9 +253,12 @@ public class ChallengeZombieInfection extends Challenge
|
||||
|
||||
private void removeZombie()
|
||||
{
|
||||
if (_zombie.getEntity() != null)
|
||||
if (_zombie != null)
|
||||
{
|
||||
_zombie.remove();
|
||||
if (_zombie.getEntity() != null)
|
||||
{
|
||||
_zombie.remove();
|
||||
}
|
||||
}
|
||||
|
||||
_zombie = null;
|
||||
|
Loading…
Reference in New Issue
Block a user