Fix invalid mixin target

This commit is contained in:
FlorianMichael 2024-11-17 22:43:07 +01:00
parent 041dbf8a8d
commit 26f9eea96a
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -32,7 +32,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(value = Protocol1_20To1_20_2.class, remap = false)
public abstract class MixinProtocol1_20To1_20_2 {
@Inject(method = "lambda$queueServerboundPacket$13", at = @At("HEAD"), cancellable = true)
@Inject(method = "lambda$queueServerboundPacket$12", at = @At("HEAD"), cancellable = true)
private static void dontQueueConfigPackets(ServerboundPackets1_20_2 packetType, PacketWrapper wrapper, CallbackInfo ci) {
if (!DebugSettings.global().queueConfigPackets.getValue()) {
ci.cancel();