From 3a0f1778d2f046db52e9df6b92b9fd8022b88a27 Mon Sep 17 00:00:00 2001 From: Drex Date: Mon, 22 Jan 2024 14:19:17 +0100 Subject: [PATCH] Update to 24w03b --- Plan/fabric/build.gradle | 6 +++--- .../events/mixin/ClientToServerHandshakePacketMixin.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plan/fabric/build.gradle b/Plan/fabric/build.gradle index 9e56c5178..84faacb5d 100644 --- a/Plan/fabric/build.gradle +++ b/Plan/fabric/build.gradle @@ -8,9 +8,9 @@ dependencies { shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion" - minecraft "com.mojang:minecraft:1.20.4" - mappings "net.fabricmc:yarn:1.20.4+build.3:v2" - modImplementation "net.fabricmc:fabric-loader:0.15.2" + minecraft "com.mojang:minecraft:24w03b" + mappings "net.fabricmc:yarn:24w03b+build.6:v2" + modImplementation "net.fabricmc:fabric-loader:0.15.6" modImplementation('me.lucko:fabric-permissions-api:0.3-SNAPSHOT') // Fabric API diff --git a/Plan/fabric/src/main/java/net/playeranalytics/plan/gathering/listeners/events/mixin/ClientToServerHandshakePacketMixin.java b/Plan/fabric/src/main/java/net/playeranalytics/plan/gathering/listeners/events/mixin/ClientToServerHandshakePacketMixin.java index bac17d5bd..1ff1950a4 100644 --- a/Plan/fabric/src/main/java/net/playeranalytics/plan/gathering/listeners/events/mixin/ClientToServerHandshakePacketMixin.java +++ b/Plan/fabric/src/main/java/net/playeranalytics/plan/gathering/listeners/events/mixin/ClientToServerHandshakePacketMixin.java @@ -27,7 +27,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(ServerHandshakeNetworkHandler.class) public class ClientToServerHandshakePacketMixin { - @Inject(method = "onHandshake", at = @At(value = "INVOKE", ordinal = 0, target = "Lnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/listener/PacketListener;)V")) + @Inject(method = "onHandshake", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;login(Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;Z)V")) public void onClientHandshakeFromNetwork(HandshakeC2SPacket packet, CallbackInfo ci) { PlanFabricEvents.ON_HANDSHAKE.invoker().onHandshake(packet); }