Skip to content

Commit

Permalink
Hotfix cancelling unsigned 1.20.6 commands
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicboy committed May 3, 2024
1 parent 368d1a7 commit 1228f14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void handlePlayerCommandInternal(SessionPlayerCommandPacket packet) {
+ "Contact your network administrator."));
}
// We seemingly can't actually do this if signed args exist, if not, we can probs keep stuff happy
if (player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_19_3)) {
if (player.getProtocolVersion().noLessThan(ProtocolVersion.MINECRAFT_1_19_3) && packet.lastSeenMessages != null) {
return CompletableFuture.completedFuture(new ChatAcknowledgementPacket(packet.lastSeenMessages.getOffset()));
}
return CompletableFuture.completedFuture(null);
Expand Down

0 comments on commit 1228f14

Please sign in to comment.