Fix some more possibly leaky perks in SSM

This commit is contained in:
Kenny Goodin 2017-11-25 21:08:32 -05:00 committed by Alexander Meech
parent e79ca4e4db
commit a68abf0bb3
2 changed files with 48 additions and 34 deletions

View File

@ -128,6 +128,13 @@ public class PerkEndermanTeleport extends SmashPerk
}
}
@Override
public void unregisteredEvents()
{
_target.clear();
_charge.clear();
}
@EventHandler
public void clean(PlayerQuitEvent event)
{

View File

@ -18,6 +18,7 @@ import mineplex.core.common.util.UtilTime.TimeUnit;
import mineplex.core.recharge.Recharge;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
import nautilus.game.arcade.kit.Perk;
public class PerkDoubleJump extends Perk
@ -130,6 +131,12 @@ public class PerkDoubleJump extends Perk
//Recharge.Instance.useForce(player, "Double Jump", 500);
}
@Override
public void unregisteredEvents()
{
_disabled.clear();
}
@EventHandler
public void FlightUpdate(UpdateEvent event)
{