Update VV usage

This commit is contained in:
FlorianMichael 2024-06-27 19:15:16 +02:00
parent 3ac3216922
commit 42f33167a9
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$12", at = @At("HEAD"), cancellable = true)
@Inject(method = "lambda$queueServerboundPacket$13", at = @At("HEAD"), cancellable = true)
private static void dontQueueConfigPackets(ServerboundPackets1_20_2 packetType, PacketWrapper wrapper, CallbackInfo ci) {
if (!DebugSettings.global().queueConfigPackets.getValue()) {
ci.cancel();