From 9ec6a0719e85f7c1cc4a4a186c4cbd86c7d50559 Mon Sep 17 00:00:00 2001 From: xXVevzZXx Date: Thu, 3 Nov 2016 17:14:01 +0100 Subject: [PATCH] Fix non upgradeable perks being not unregistered --- .../src/nautilus/game/arcade/game/Game.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java index 43b77f75c..153a260f0 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/Game.java @@ -831,6 +831,14 @@ public abstract class Game implements Listener } } } + else + { + for (Perk perk : kit.GetPerks()) + { + HandlerList.unregisterAll(perk); + perk.unregisteredEvents(); + } + } } else {