mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 12:37:42 +01:00
Skip 3 bytes instead of overwriting 0
This commit is contained in:
parent
d02a898646
commit
729fc14e6d
@ -48,8 +48,7 @@ public final class Utils {
|
||||
|
||||
public static int writeEmptyVarIntHeader(@NotNull ByteBuffer buffer) {
|
||||
final int index = buffer.position();
|
||||
buffer.putShort((short) 0);
|
||||
buffer.put((byte) 0);
|
||||
buffer.position(index + 3); // Skip 3 bytes
|
||||
return index;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user