From 58d20a3a8cc07554fa060225be2d164ab3c1e295 Mon Sep 17 00:00:00 2001 From: William Date: Mon, 17 Jun 2024 16:32:35 +0100 Subject: [PATCH] fix: make static mixin methods private --- .../william278/uniform/fabric/mixins/ArgumentNodeMixin.java | 4 ++-- .../william278/uniform/fabric/mixins/ArgumentNodeMixin.java | 4 ++-- gradle.properties | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java b/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java index 1f291c1..dd6e499 100644 --- a/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java +++ b/fabric-1.20.1/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java @@ -39,12 +39,12 @@ import org.spongepowered.asm.mixin.injection.Redirect; public class ArgumentNodeMixin { @Invoker("") - static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties properties, @Nullable Identifier id) { + private static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties properties, @Nullable Identifier id) { throw new AssertionError(); } @Redirect(method = "(Lcom/mojang/brigadier/tree/ArgumentCommandNode;)V", at = @At("HEAD")) - static ArgumentNode onConstruct(ArgumentCommandNode node) { + private static ArgumentNode onConstruct(ArgumentCommandNode node) { ArgumentSerializer.ArgumentTypeProperties properties; try { properties = ArgumentTypes.get(node.getType()).getArgumentTypeProperties(node.getType()); diff --git a/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java b/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java index 1f291c1..dd6e499 100644 --- a/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java +++ b/fabric-1.20.6/src/main/java/net/william278/uniform/fabric/mixins/ArgumentNodeMixin.java @@ -39,12 +39,12 @@ import org.spongepowered.asm.mixin.injection.Redirect; public class ArgumentNodeMixin { @Invoker("") - static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties properties, @Nullable Identifier id) { + private static ArgumentNode createArgumentNode(String name, ArgumentSerializer.ArgumentTypeProperties properties, @Nullable Identifier id) { throw new AssertionError(); } @Redirect(method = "(Lcom/mojang/brigadier/tree/ArgumentCommandNode;)V", at = @At("HEAD")) - static ArgumentNode onConstruct(ArgumentCommandNode node) { + private static ArgumentNode onConstruct(ArgumentCommandNode node) { ArgumentSerializer.ArgumentTypeProperties properties; try { properties = ArgumentTypes.get(node.getType()).getArgumentTypeProperties(node.getType()); diff --git a/gradle.properties b/gradle.properties index 8635fbc..3482bf1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ javaVersion=17 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -library_version=1.0.10 +library_version=1.0.11 library_archive=uniform library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. \ No newline at end of file