Don't bother with failsafe if the game is null (i.e. beyond dead)

Steps to reproduce:
1) Quit server at just the right time
This commit is contained in:
samczsun 2017-02-26 15:05:31 -05:00 committed by cnr
parent b3cc9f29e2
commit 3e8b23c6f4

View File

@ -156,6 +156,8 @@ public class ProgressingKitManager implements Listener
PlayerKit playerKit = _manager.getKitProgressionManager().getDataManager().get(player.getUniqueId());
try
{
if (_manager.GetGame() != null)
{
for (Kit kit : _manager.GetGame().GetKits())
{
@ -166,6 +168,7 @@ public class ProgressingKitManager implements Listener
}
}
}
}
finally
{
_manager.getKitProgressionManager().getDataManager().remove(playerKit);