diff --git a/src/main/java/com/flowpowered/networking/util/ByteBufUtils.java b/src/main/java/com/flowpowered/networking/util/ByteBufUtils.java index 453dffb..90689d2 100644 --- a/src/main/java/com/flowpowered/networking/util/ByteBufUtils.java +++ b/src/main/java/com/flowpowered/networking/util/ByteBufUtils.java @@ -117,7 +117,7 @@ public static void writeVarInt(ByteBuf buf, int value) { * @throws java.io.IOException If the reading fails */ public static long readVarLong(ByteBuf buf) throws IOException { - int out = 0; + long out = 0; int bytes = 0; byte in; while (true) {