Skip to content

Commit

Permalink
Fix backwards compatibility for 1.17-1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed May 18, 2024
1 parent 5cacb29 commit dfc57ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private void sendEntityMetadata(Player player, int entityId, List<Object> items)
if (Version.afterOrEqual(Version.v1_20_R4)) {
Object codec = DWS_GET_CODEC_METHOD.invoke(serializer);
CODEC_ENCODE_METHOD.invoke(codec, packetDataSerializer, value);
} else if (Version.afterOrEqual(Version.v1_20_R3)) {
} else {
DWS_SERIALIZE_METHOD.invoke(serializer, packetDataSerializer, value);
}
}
Expand Down

0 comments on commit dfc57ac

Please sign in to comment.