mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-02 08:39:59 +01:00
Merge pull request #2322 from creeper123123321/passbytebuf
Allow bytebuf passthrough on encode
This commit is contained in:
commit
1998eca6c8
@ -54,8 +54,10 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
|
||||
throw (Error) e.getCause();
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
bytebuf.writeBytes((ByteBuf) o);
|
||||
}
|
||||
|
||||
transform(bytebuf);
|
||||
}
|
||||
|
||||
|
@ -35,8 +35,9 @@ public class SpongeEncodeHandler extends MessageToByteEncoder<Object> implements
|
||||
throw (Error) e.getCause();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
bytebuf.writeBytes((ByteBuf) o)
|
||||
}
|
||||
|
||||
transform(bytebuf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user