Update to 24w03b

This commit is contained in:
Drex 2024-01-22 14:19:17 +01:00
parent 8356a0d52e
commit 3a0f1778d2
2 changed files with 4 additions and 4 deletions

View File

@ -8,9 +8,9 @@ dependencies {
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion" shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
minecraft "com.mojang:minecraft:1.20.4" minecraft "com.mojang:minecraft:24w03b"
mappings "net.fabricmc:yarn:1.20.4+build.3:v2" mappings "net.fabricmc:yarn:24w03b+build.6:v2"
modImplementation "net.fabricmc:fabric-loader:0.15.2" modImplementation "net.fabricmc:fabric-loader:0.15.6"
modImplementation('me.lucko:fabric-permissions-api:0.3-SNAPSHOT') modImplementation('me.lucko:fabric-permissions-api:0.3-SNAPSHOT')
// Fabric API // Fabric API

View File

@ -27,7 +27,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(ServerHandshakeNetworkHandler.class) @Mixin(ServerHandshakeNetworkHandler.class)
public class ClientToServerHandshakePacketMixin { 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) { public void onClientHandshakeFromNetwork(HandshakeC2SPacket packet, CallbackInfo ci) {
PlanFabricEvents.ON_HANDSHAKE.invoker().onHandshake(packet); PlanFabricEvents.ON_HANDSHAKE.invoker().onHandshake(packet);
} }