Fix an NPE caused by WinEffects in some cases

This commit is contained in:
Sam 2018-02-16 13:01:05 +00:00 committed by Alexander Meech
parent 615aae8977
commit 0c8cbd7b89

View File

@ -131,13 +131,9 @@ public abstract class WinEffectGadget extends Gadget
}); });
_player = null; _player = null;
_baseLocation = null; _baseLocation = null;
_team.clear();
_team = null; _team = null;
_nonTeam.clear();
_nonTeam = null; _nonTeam = null;
_other.clear();
_other = null; _other = null;
_allPlayers.clear();
_allPlayers = null; _allPlayers = null;
// Loads gadgets back when players are teleported to the arcade hub, after the win effect // Loads gadgets back when players are teleported to the arcade hub, after the win effect
Manager.getUserGadgetPersistence().setEnabled(true); Manager.getUserGadgetPersistence().setEnabled(true);