Skip to content

Commit

Permalink
Fix 1.18.2->1.19 CHAT_MESSAGE using static timestamp (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter12345 committed Aug 21, 2022
1 parent 3695df1 commit 9830416
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public void registerMap() {
@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);
Expand Down

0 comments on commit 9830416

Please sign in to comment.