Fixed a possible NPE
This commit is contained in:
parent
2659dd4e39
commit
993ed0a92d
@ -242,7 +242,13 @@ public class EvolveData
|
|||||||
if (_holo != null)
|
if (_holo != null)
|
||||||
_holo.stop();
|
_holo.stop();
|
||||||
|
|
||||||
_player.teleport(_eggLoc.clone().add(0.5, 0.0, 0.5));
|
try
|
||||||
|
{
|
||||||
|
_player.teleport(_eggLoc.clone().add(0.5, 0.0, 0.5));
|
||||||
|
}
|
||||||
|
catch (NullPointerException ex)
|
||||||
|
{}
|
||||||
|
|
||||||
_ended = true;
|
_ended = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user