Sentry Issue #223473496
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:
parent
b3cc9f29e2
commit
3e8b23c6f4
@ -156,6 +156,8 @@ public class ProgressingKitManager implements Listener
|
|||||||
|
|
||||||
PlayerKit playerKit = _manager.getKitProgressionManager().getDataManager().get(player.getUniqueId());
|
PlayerKit playerKit = _manager.getKitProgressionManager().getDataManager().get(player.getUniqueId());
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_manager.GetGame() != null)
|
||||||
{
|
{
|
||||||
for (Kit kit : _manager.GetGame().GetKits())
|
for (Kit kit : _manager.GetGame().GetKits())
|
||||||
{
|
{
|
||||||
@ -166,6 +168,7 @@ public class ProgressingKitManager implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
_manager.getKitProgressionManager().getDataManager().remove(playerKit);
|
_manager.getKitProgressionManager().getDataManager().remove(playerKit);
|
||||||
|
Loading…
Reference in New Issue
Block a user