Fixed a possible NPE

This commit is contained in:
Mysticate 2015-08-16 22:38:59 -04:00
parent 2659dd4e39
commit 993ed0a92d
1 changed files with 7 additions and 1 deletions

View File

@ -242,7 +242,13 @@ public class EvolveData
if (_holo != null)
_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;
}