Fixed a possible NPE

This commit is contained in:
Mysticate 2015-08-16 22:38:59 -04:00
parent 2659dd4e39
commit 993ed0a92d

View File

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