Skip to content

Commit

Permalink
misc: Not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Oct 21, 2024
1 parent 50e0f1d commit 6038ab0
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,6 @@ public void onTownAddResident(TownAddResidentEvent e)
updatePlayer(e.getResident().getPlayer(), e.getTown());
}

@EventHandler
public void onPlayerMorph(PlayerMorphEvent e)
{
if (e.getState().containsAbility(AbilityType.CAN_FLY))
updatePlayer(e.getPlayer(), null);
}

@EventHandler
public void onPlayerUnmorph(PlayerUnMorphEvent e)
{
var player = e.getPlayer();
this.blockedPlayers.remove(player);
FlyAbility.unBlockPlayer(player, this);
}

// Folia没有提供监听玩家改变世界的事件,所以我们只能监听EntityAddToWorldEvent
@EventHandler
public void onPlayerChangeWorld(EntityAddToWorldEvent e)
Expand Down

0 comments on commit 6038ab0

Please sign in to comment.