Fix 1.18.2->1.19 CHAT_MESSAGE using static timestamp (#495)

This commit is contained in:
Pieter12345 2022-08-21 09:03:58 +02:00 committed by GitHub
parent 3695df1e44
commit 98304168b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ public final class Protocol1_18_2To1_19 extends BackwardsProtocol<ClientboundPac
@Override
public void registerMap() {
map(Type.STRING); // Message
create(Type.LONG, Instant.now().toEpochMilli()); // Timestamp
handler(wrapper -> wrapper.write(Type.LONG, Instant.now().toEpochMilli())); // Timestamp
create(Type.LONG, 0L); // Salt
handler(wrapper -> {
final String message = wrapper.get(Type.STRING, 0);