From ca2604b01bb55755f24ca4491977a504438c3756 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 13 Jun 2024 21:42:35 +0100 Subject: [PATCH] build: remove adventure dep --- fabric-1.20.1/build.gradle | 2 -- .../java/net/william278/uniform/fabric/FabricCommandUser.java | 2 +- fabric-1.20.6/build.gradle | 2 -- .../java/net/william278/uniform/fabric/FabricCommandUser.java | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/fabric-1.20.1/build.gradle b/fabric-1.20.1/build.gradle index a62f7ef..a01956a 100644 --- a/fabric-1.20.1/build.gradle +++ b/fabric-1.20.1/build.gradle @@ -13,8 +13,6 @@ dependencies { modCompileOnly 'net.fabricmc:fabric-loader:0.15.11' modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.92.2+1.20.1' - modImplementation include('net.kyori:adventure-platform-fabric:5.9.0') - compileOnly 'org.projectlombok:lombok:1.18.32' annotationProcessor 'org.projectlombok:lombok:1.18.32' diff --git a/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java b/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java index 4104ba7..52a820f 100644 --- a/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java +++ b/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java @@ -33,7 +33,7 @@ public record FabricCommandUser(@NotNull ServerCommandSource source) implements @Override public Audience getAudience() { - return source.getPlayer(); + return (Audience) source.getPlayer(); } @Override diff --git a/fabric-1.20.6/build.gradle b/fabric-1.20.6/build.gradle index 0b91f1b..fecb70c 100644 --- a/fabric-1.20.6/build.gradle +++ b/fabric-1.20.6/build.gradle @@ -13,8 +13,6 @@ dependencies { modCompileOnly 'net.fabricmc:fabric-loader:0.15.11' modCompileOnly 'net.fabricmc.fabric-api:fabric-api:0.100.0+1.20.6' - modImplementation include('net.kyori:adventure-platform-fabric:5.13.0') - compileOnly 'org.projectlombok:lombok:1.18.32' annotationProcessor 'org.projectlombok:lombok:1.18.32' diff --git a/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java b/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java index 4104ba7..52a820f 100644 --- a/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java +++ b/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/FabricCommandUser.java @@ -33,7 +33,7 @@ public record FabricCommandUser(@NotNull ServerCommandSource source) implements @Override public Audience getAudience() { - return source.getPlayer(); + return (Audience) source.getPlayer(); } @Override