Always use 1.21.1 API

This commit is contained in:
Minecon724 2025-01-02 19:44:24 +01:00
parent fa96487ef6
commit 4bf6ec5ae7
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>${project.spigot.version}</version> <version>1.21.1-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View file

@ -73,7 +73,7 @@ public class SwingManager implements Listener {
var result = player.getWorld().rayTraceEntities( var result = player.getWorld().rayTraceEntities(
player.getEyeLocation(), player.getEyeLocation(),
player.getEyeLocation().getDirection(), player.getEyeLocation().getDirection(),
player.getAttribute(Attribute.ENTITY_INTERACTION_RANGE).getValue(), player.getAttribute(Attribute.PLAYER_ENTITY_INTERACTION_RANGE).getValue(),
e -> e != player e -> e != player
); );