More accurate length setting
This commit is contained in:
@@ -185,7 +185,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
startPos = packet.getCommand().length() + 1;
|
startPos = packet.getCommand().length() + 1;
|
||||||
length = longestLength;
|
length = longestLength;
|
||||||
} else {
|
} else {
|
||||||
length = packet.getCommand().substring(startPos).indexOf(' ') + 1;
|
length = packet.getCommand().length() - startPos;
|
||||||
}
|
}
|
||||||
|
|
||||||
resp.setStart(startPos);
|
resp.setStart(startPos);
|
||||||
|
Reference in New Issue
Block a user