Fix non upgradeable perks being not unregistered
This commit is contained in:
parent
e3e22383f6
commit
9ec6a0719e
@ -831,6 +831,14 @@ public abstract class Game implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (Perk perk : kit.GetPerks())
|
||||||
|
{
|
||||||
|
HandlerList.unregisterAll(perk);
|
||||||
|
perk.unregisteredEvents();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user