Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Make sure to check not only the entire array but also how much was written
Dieser Commit ist enthalten in:
Ursprung
3dc8e25ec7
Commit
7c76ae9a27
@ -83,7 +83,7 @@ public class ProtocolUtilsTest {
|
||||
|
||||
writeVarIntOld(varintOld, i);
|
||||
ProtocolUtils.writeVarInt(varintNew, i);
|
||||
assertArrayEquals(varintOld.array(), varintNew.array(),
|
||||
assertArrayEquals(ByteBufUtil.getBytes(varintOld), ByteBufUtil.getBytes(varintNew),
|
||||
"Encoding of " + i + " was invalid");
|
||||
|
||||
assertEquals(i, oldReadVarIntSafely(varintNew));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren