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); }