mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-30 14:59:39 +08:00
More accurate length setting
This commit is contained in:
parent
f042d214d3
commit
332f931534
@ -185,7 +185,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
||||
startPos = packet.getCommand().length() + 1;
|
||||
length = longestLength;
|
||||
} else {
|
||||
length = packet.getCommand().substring(startPos).indexOf(' ') + 1;
|
||||
length = packet.getCommand().length() - startPos;
|
||||
}
|
||||
|
||||
resp.setStart(startPos);
|
||||
|
Loading…
Reference in New Issue
Block a user