Fix command packet wrong mark as unsigned (#810)
Dropping previousMessages will break the chat chain
This commit is contained in:
@@ -114,9 +114,6 @@ public class PlayerCommand implements MinecraftPacket {
|
|||||||
timestamp = Instant.ofEpochMilli(buf.readLong());
|
timestamp = Instant.ofEpochMilli(buf.readLong());
|
||||||
|
|
||||||
salt = buf.readLong();
|
salt = buf.readLong();
|
||||||
if (salt == 0L) {
|
|
||||||
unsigned = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
int mapSize = ProtocolUtils.readVarInt(buf);
|
int mapSize = ProtocolUtils.readVarInt(buf);
|
||||||
if (mapSize > MAX_NUM_ARGUMENTS) {
|
if (mapSize > MAX_NUM_ARGUMENTS) {
|
||||||
@@ -152,6 +149,10 @@ public class PlayerCommand implements MinecraftPacket {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (salt == 0L && previousMessages.length == 0) {
|
||||||
|
unsigned = true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user