Fix some more possibly leaky perks in SSM
This commit is contained in:
parent
e79ca4e4db
commit
a68abf0bb3
@ -128,6 +128,13 @@ public class PerkEndermanTeleport extends SmashPerk
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unregisteredEvents()
|
||||
{
|
||||
_target.clear();
|
||||
_charge.clear();
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void clean(PlayerQuitEvent event)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user