mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Use all bits for effect packet args. Closes #296
This commit is contained in:
1 file changed
+2
-2
@@ -44,7 +44,7 @@ public class PacketBotaniaEffect implements IMessage {
|
||||
args = new int[type.argCount];
|
||||
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
args[i] = ByteBufUtils.readVarInt(buf, 3);
|
||||
args[i] = ByteBufUtils.readVarInt(buf, 5);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class PacketBotaniaEffect implements IMessage {
|
||||
buf.writeDouble(z);
|
||||
|
||||
for (int i = 0; i < type.argCount; i++) {
|
||||
ByteBufUtils.writeVarInt(buf, args[i], 3);
|
||||
ByteBufUtils.writeVarInt(buf, args[i], 5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user