From 62632de9bcc6282b2fcdd6348c4921b1f4496de0 Mon Sep 17 00:00:00 2001 From: voruti <45130096+voruti@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:27:01 +0100 Subject: [PATCH] Add Unique annotation --- .../oktw/mixin/bungee/ServerHandshakeNetworkHandlerMixin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/one/oktw/mixin/bungee/ServerHandshakeNetworkHandlerMixin.java b/src/main/java/one/oktw/mixin/bungee/ServerHandshakeNetworkHandlerMixin.java index 18378d8..36bc52e 100644 --- a/src/main/java/one/oktw/mixin/bungee/ServerHandshakeNetworkHandlerMixin.java +++ b/src/main/java/one/oktw/mixin/bungee/ServerHandshakeNetworkHandlerMixin.java @@ -16,6 +16,7 @@ import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; +import org.spongepowered.asm.mixin.Unique; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @@ -25,6 +26,7 @@ @Mixin(ServerHandshakeNetworkHandler.class) public class ServerHandshakeNetworkHandlerMixin { + @Unique private static final Gson gson = new Gson(); @Shadow