From 0c8cbd7b899dacaf637f4d88ee585785991acbcd Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 16 Feb 2018 13:01:05 +0000 Subject: [PATCH] Fix an NPE caused by WinEffects in some cases --- .../src/mineplex/core/gadget/types/WinEffectGadget.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/WinEffectGadget.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/WinEffectGadget.java index c59e0282f..bc6796782 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/WinEffectGadget.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/WinEffectGadget.java @@ -131,13 +131,9 @@ public abstract class WinEffectGadget extends Gadget }); _player = null; _baseLocation = null; - _team.clear(); _team = null; - _nonTeam.clear(); _nonTeam = null; - _other.clear(); _other = null; - _allPlayers.clear(); _allPlayers = null; // Loads gadgets back when players are teleported to the arcade hub, after the win effect Manager.getUserGadgetPersistence().setEnabled(true);