Skip to content

Commit

Permalink
fix: memory leak if player login is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingrim4 committed Feb 24, 2024
1 parent 25eef37 commit c0d308b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;

import net.imprex.orebfuscator.Orebfuscator;
Expand All @@ -34,7 +34,7 @@ private void addPlayer(Player player) {
}

@EventHandler
public void onLogin(PlayerLoginEvent event) {
public void onJoin(PlayerJoinEvent event) {
this.addPlayer(event.getPlayer());
}

Expand Down

0 comments on commit c0d308b

Please sign in to comment.