From 4bf6ec5ae7b12e7131c765f372effdc671d8910d Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 2 Jan 2025 19:44:24 +0100 Subject: [PATCH] Always use 1.21.1 API --- pom.xml | 2 +- src/main/java/eu/m724/tweaks/swing/SwingManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 );