Skip to content

Commit

Permalink
fix write int count asm
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Oct 1, 2023
1 parent ec038ee commit e2d9284
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public ReadWriteItemStackVisitor(MethodVisitor mv) {
public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) {
if ("writeByte".equals(name)) {
name = WRITE_VAR_INT_METHOD;
desc = "(I)Lnet/minecraft/network/PacketBuffer;";
} else if ("readByte".equals(name)) {
name = READ_VAR_INT_METHOD;
desc = "()I";
Expand Down

0 comments on commit e2d9284

Please sign in to comment.