mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-08 03:18:21 +02: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();
|
throw (Error) e.getCause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
bytebuf.writeBytes((ByteBuf) o);
|
||||||
}
|
}
|
||||||
|
|
||||||
transform(bytebuf);
|
transform(bytebuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,8 +35,9 @@ public class SpongeEncodeHandler extends MessageToByteEncoder<Object> implements
|
|||||||
throw (Error) e.getCause();
|
throw (Error) e.getCause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
bytebuf.writeBytes((ByteBuf) o)
|
||||||
}
|
}
|
||||||
|
|
||||||
transform(bytebuf);
|
transform(bytebuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user