Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Rewrite statistics for 1.19 (#2954)
Dieser Commit ist enthalten in:
Ursprung
24d887a53d
Commit
c4d9209c81
@ -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()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren