diff --git a/pom.xml b/pom.xml
index 71e68e2..45ceefd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -167,7 +167,7 @@
org.spigotmc
spigot-api
- ${project.spigot.version}
+ 1.21.1-R0.1-SNAPSHOT
provided
diff --git a/src/main/java/eu/m724/tweaks/swing/SwingManager.java b/src/main/java/eu/m724/tweaks/swing/SwingManager.java
index 6acfd75..b7ccb5f 100644
--- a/src/main/java/eu/m724/tweaks/swing/SwingManager.java
+++ b/src/main/java/eu/m724/tweaks/swing/SwingManager.java
@@ -73,7 +73,7 @@ public class SwingManager implements Listener {
var result = player.getWorld().rayTraceEntities(
player.getEyeLocation(),
player.getEyeLocation().getDirection(),
- player.getAttribute(Attribute.ENTITY_INTERACTION_RANGE).getValue(),
+ player.getAttribute(Attribute.PLAYER_ENTITY_INTERACTION_RANGE).getValue(),
e -> e != player
);