3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Don't require command to be signed to pass it through as-is

Dieser Commit ist enthalten in:
Gegy 2023-11-27 18:38:55 +01:00 committet von Riley Park
Ursprung 92c48507eb
Commit 3b7ffa837e

Datei anzeigen

@ -52,7 +52,7 @@ public class SessionCommandHandler implements CommandHandler<SessionPlayerComman
@Nullable @Nullable
private MinecraftPacket forwardCommand(SessionPlayerCommandPacket packet, String newCommand) { private MinecraftPacket forwardCommand(SessionPlayerCommandPacket packet, String newCommand) {
if (packet.isSigned() && newCommand.equals(packet.command)) { if (newCommand.equals(packet.command)) {
return packet; return packet;
} }
return modifyCommand(packet, newCommand); return modifyCommand(packet, newCommand);