@Override public void handle(PacketWrapper packet) throws Exception { EntityMap.rewriteServerbound(packet.buf, con.getClientEntityId(), con.getServerEntityId()); if (con.getServer() != null) { con.getServer().getCh().write(packet); } }
@Override public void handle(byte[] buf) throws Exception { EntityMap.rewrite(buf, con.getClientEntityId(), con.getServerEntityId()); if (con.getServer() != null) { con.getServer().getCh().write(buf); } }