3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-28 17:10:13 +01:00

Rewrite statistics for 1.19 (#2954)

Dieser Commit ist enthalten in:
Camotoy 2022-06-15 04:13:14 -04:00 committet von GitHub
Ursprung 24d887a53d
Commit c4d9209c81
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -49,6 +49,7 @@ import com.viaversion.viaversion.protocols.protocol1_19to1_18_2.storage.NonceSto
import com.viaversion.viaversion.protocols.protocol1_19to1_18_2.storage.SequenceStorage; import com.viaversion.viaversion.protocols.protocol1_19to1_18_2.storage.SequenceStorage;
import com.viaversion.viaversion.rewriter.CommandRewriter; import com.viaversion.viaversion.rewriter.CommandRewriter;
import com.viaversion.viaversion.rewriter.SoundRewriter; import com.viaversion.viaversion.rewriter.SoundRewriter;
import com.viaversion.viaversion.rewriter.StatisticsRewriter;
import com.viaversion.viaversion.rewriter.TagRewriter; import com.viaversion.viaversion.rewriter.TagRewriter;
import javax.crypto.Cipher; import javax.crypto.Cipher;
@ -131,6 +132,8 @@ public final class Protocol1_19To1_18_2 extends AbstractProtocol<ClientboundPack
} }
}); });
new StatisticsRewriter(this).register(ClientboundPackets1_18.STATISTICS);
final PacketHandler titleHandler = wrapper -> { final PacketHandler titleHandler = wrapper -> {
final JsonElement component = wrapper.read(Type.COMPONENT); final JsonElement component = wrapper.read(Type.COMPONENT);
if (!component.isJsonNull()) { if (!component.isJsonNull()) {