diff --git a/proxy/src/test/java/com/velocitypowered/proxy/protocol/ProtocolUtilsTest.java b/proxy/src/test/java/com/velocitypowered/proxy/protocol/ProtocolUtilsTest.java index 43b940806..57cd8f7da 100644 --- a/proxy/src/test/java/com/velocitypowered/proxy/protocol/ProtocolUtilsTest.java +++ b/proxy/src/test/java/com/velocitypowered/proxy/protocol/ProtocolUtilsTest.java @@ -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));