Certain packets with more complicated if statements (IE, ones that aren't just if (flag) but instead if (var == 1 || var == 2)) are parsed as if they were if (var).
For example, the world border packet is incorrectly parsed. It is currently parsed as
writeString(a);
writeByte(d);
if(d) {
writeString(b);
writeString(c.a());
}
but should actually be
writeString(a);
writeByte(d);
if(d == 0 || d == 2) {
writeString(b);
writeString(c.a());
}
The same applies with the teams packet and a few others.
Certain packets with more complicated if statements (IE, ones that aren't just
if (flag)but insteadif (var == 1 || var == 2)) are parsed as if they wereif (var).For example, the world border packet is incorrectly parsed. It is currently parsed as
but should actually be
The same applies with the teams packet and a few others.