Skip to content

Commit

Permalink
#59 fix listening to wrong event
Browse files Browse the repository at this point in the history
  • Loading branch information
CubBossa committed Oct 31, 2023
1 parent 5b0e9f2 commit 2f6ed26
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractAtEntityEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
import org.bukkit.event.player.PlayerInteractEvent;

import java.util.*;
Expand Down Expand Up @@ -237,7 +238,7 @@ public CompletableFuture<Void> eraseNodes(PathPlayer<Player> player, Collection<

private class EntityInteractListener implements Listener, AutoCloseable {
@EventHandler
public void onInteract(PlayerInteractAtEntityEvent e) {
public void onInteract(PlayerInteractEntityEvent e) {
PathPlayer<Player> player = BukkitUtils.wrap(e.getPlayer());
if (!editingPlayers.containsKey(player)) {
return;
Expand Down

0 comments on commit 2f6ed26

Please sign in to comment.