From 66a174857347083332e4e73c00ac85b29d1285d8 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Thu, 12 Sep 2024 14:45:44 +0200 Subject: [PATCH] Remove transaction tracking (and cancelling) in 1.17->1.16.4 (#883) --- .../v1_17to1_16_4/Protocol1_17To1_16_4.java | 4 --- .../rewriter/BlockItemPacketRewriter1_17.java | 3 +- .../v1_17to1_16_4/storage/PingRequests.java | 34 ------------------- 3 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/storage/PingRequests.java diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/Protocol1_17To1_16_4.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/Protocol1_17To1_16_4.java index ba89d074..ade147b5 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/Protocol1_17To1_16_4.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/Protocol1_17To1_16_4.java @@ -24,7 +24,6 @@ import com.viaversion.viabackwards.api.rewriters.SoundRewriter; import com.viaversion.viabackwards.api.rewriters.TranslatableRewriter; import com.viaversion.viabackwards.protocol.v1_17to1_16_4.rewriter.BlockItemPacketRewriter1_17; import com.viaversion.viabackwards.protocol.v1_17to1_16_4.rewriter.EntityPacketRewriter1_17; -import com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage.PingRequests; import com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage.PlayerLastCursorItem; import com.viaversion.viaversion.api.connection.UserConnection; import com.viaversion.viaversion.api.minecraft.RegistryType; @@ -170,8 +169,6 @@ public final class Protocol1_17To1_16_4 extends BackwardsProtocol. - */ -package com.viaversion.viabackwards.protocol.v1_17to1_16_4.storage; - -import com.viaversion.viaversion.api.connection.StorableObject; -import com.viaversion.viaversion.libs.fastutil.ints.IntOpenHashSet; -import com.viaversion.viaversion.libs.fastutil.ints.IntSet; - -public final class PingRequests implements StorableObject { - private final IntSet ids = new IntOpenHashSet(); - - public void addId(short id) { - ids.add(id); - } - - public boolean removeId(short id) { - return ids.remove(id); - } -}